Error with ReplaceByCondition in Dynamo


I’m having some problems with the script in the image. I’m trying to replace some elements of a string that are equal to “.” with a different string, but the command ReplaceByCondition doesn’t work and I don’t know why.

Thank you.
FB

@f.brusiani .

try codeblock…

x == "." ? " " : x #codeblock

KR

Andreas

The ReplaceByCondition node uses a function for the condition in question. That’s a specific object type, where the “function” node (== in your ase) is missing an input that then pulls from the item input. If you already have the boolean results you can just use an If node.

1 Like