Replace By Condition node


#1

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!


#2

 

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?


#3

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

Capture


#4

ahhhh! duh. Thanks Mark.