Branch
Script Branch
The Branch operation is used to perform a change of control with the node sequence. By default, nodes are executed in sequential order starting from the first node and continuing until the last node, or until an error occurs which stops the script.
The branch
operation allows looping and branching within the node sequence.
Test Fields
Evaluate
Required
The script to evaluate. This must be valid Perl code. This field allows for multi-line Perl code to be written. For example:
Examples
- This example checks if the threshold is greater than 10, the result determines if either
on_true
oron_false
are used.
$v->{threshold} > 10
- This always evaluates to true:
1
- This always evaluates to false:
0
On True
Optional
Optional label
of operation to jump to if the expression
evaluates to true.
Examples
AfterAccountCreation
On False
Optional
Optional label
of operation to jump to if the expression
evaluates to false.
Examples
CleanupSubscriber