if

This control flow node selects between two subgraphs based on the value of the condition input.

If the condition value is true, then the result of the graph connected on the true_case port is evaluated and returned and the value of the graph connected to false_case is not evaluated. If the condition is false, then only the false_case branch gets evaluated.

Inputs

condition

Boolean value that selects between the two evaluation inputs.

true_case

The input to evaluate if condition is true.

false_case

The input to evaluate if condition is false.

Output

output

The value of one of the two case inputs based on the condition.