Replace By Condition node

looking for an example of what type of input is desired by nodes requesting a “condition” as there input. Specifically trying to figure out the Replace by Condition node. I have a list of strings: (john, ted, mike, ted, john) and i want to replace “john” with the number 10.

it seems like the input into the replace by condition node should be

  1. the list of strings

  2. a number 10

  3. a string “john”

but the node fails on this input. what is condition actually looking for?

much thanks!

 

This is a screenshot of the problem I am trying to solve with the “replace by condition” node
replacebycondition

 

not understanding why the replace method is failing? is it a bug?

You need to run your variant through the condition like so.

Capture

1 Like

ahhhh! duh. Thanks Mark.