Skip to content

Conditional Node Processing

The following examples show how conditional nodes can affect graph processing based on the evaluation of logic statements.

If...Then conditions

Graph Condition statement Evaluation and execution
Simple conditional graph if value > 100 is true then process all outgoing nodes condition is true; system executes nodes 2 and 3
condition is false; execution stops before node 2
Parallel conditional graph if value > 100 is true then process all outgoing nodes condition is true; system executes nodes 2, 3, 4, and 5
condition is false; execution stops before node 2 and 4
Star conditional graph if value > 100 is true then process all outgoing nodes condition is true; system executes nodes 2, 3, and 4
condition is false; execution stops before node 2 and 3
OR conditional graph if condition from node 1 is true then process outgoing nodes
if condition from node 2 is true then process outgoing nodes

Creating a logical OR operation: this method is used to write "OR" condition statements only for the initial release of the conditional node feature.
condition 1 is true; condition 2 is true; system executes node 3
condition 1 is false; condition 2 is true; system executes node 3
condition 1 is true; condition 2 is false; system executes node 3
condition 1 is false; condition 2 is false; execution stops before node 3

If...Then...Else conditions

Graph Condition statement Evaluation and execution
Parallel conditional graph if value > 100 is true then process node 2
if value > 100 is false then process node 4
condition is true; system executes nodes 2 and 3
condition is false; system executes nodes 4 and 5
Star conditional graph if value > 100 is true then process node 2
if value > 100 is false then process node 3
condition is true; system executes nodes 2 and 4
condition is false; system executes nodes 3 and 4
Star 4-node conditional graph if value == 10 is true then process node 2 and node 3
if value == 10 is false then process node 4 and node 5
condition is true; system executes nodes 2, 3, and 6
condition is false; system executes nodes 4, 5, and 6

If...Then...Else If conditions

Graph Condition statement Evaluation and execution
Star 4-node conditional graph if value == 10 is true then process node 2
if value == 20 is true then process node 3
if value == 30 is true then process node 4
if value == 40 is true then process node 5
value = 10; system executes nodes 2 and 6
value = 20; system executes nodes 3 and 6
value = 30; system executes nodes 4 and 6
value = 40; system executes nodes 5 and 6
value = 50; execution stops before nodes 2, 3, 4, and 5