Help: Replacing Infinity Item with Zero in a List


A simple math problem to be solved: how could I replace all ‘Infinity’ data with ‘0’ in a list of thousands of tree branches? (369.8 KB)

I have tried the Item Index component, however, it does not detect the item to search for. Using the Equality component will do the job, while the ’ true/false’ output cannot feed the Replace Items component.

Many thanks!

item index searches for a specific item requiring a match in the hash code as well which means your +infinity is not actually a member of the list.
I would suggest the use of dispatch with a list of indices as the control.

1 Like

Thanks Christopher! GH is a science of data tree.