Hello! i want to replace all instances of this list with a “o” string if the value is not “-1”, can anyone help out?
Kind Regards ![]()
A simple if statement in a code block will do: val == “-1”? v: “o”;
This worked! Thank you so much!
I am still new to Dynamo, having trouble to write in code block ![]()
Thank you so much!
Thank you so much!
Thanks a bunch! i will be checking it out!
The function should be something like the < node without the X input (or whichever input is the list in which you want to replace something).
Without seeing the input context we can’t directly help if you’re looking for something else though. Perhaps some design script ali g the lines of a<5? “NaN”: b;?