I have a list of numbers in Dynamo. Some are positive, others negative:
I want to add a “+” sign in front of the positve numbers.
I’ve tried using the List.FilterByBoolMask node, but I can’t manage to combine the 2 IN and OUT lists without changing the order or deleting values.
The first code that Daan mentioned before edited. if you want to check if something is greater than, then it must be a number.
The output of that code resulted in a string if it adds a plus, and a number if it is not changed.
The new code example will work, if you do not copy the code. In your example, you have fancy curled quotes due to copying from the forum, replace them with the normal " quotes which you find on the keyboard.