Skip to main content

Branch

Controlled node

Overview​

Choose the first matching path from several conditions.

Branch selects the first matching condition from a list. Use it to route statuses, categorise a score or choose between several actions.

Properties​

PropertyTypeDescriptionDefault
branchesListConfigure each branch name, comparison and target in the Branches panel.-

In the Branches panel, click Add Branch, then give each branch a name, comparison and target value. Each name creates an event output.

Supported comparisons are <, <=, ==, >= and >. New branches start with equality (==).

Use distinct names and leave default for the fallback output. Renaming or deleting a branch changes its socket, so check the connections afterward.

Inputs​

InputTypeDescription
runEventChecks the conditions in their listed order.
valueDataThe value to compare with each branch's target.

Outputs​

OutputTypeDescription
Your branch namesEventThe first matching branch fires. Later matching branches are not run.
defaultEventFires if no condition matches, including when no branches are configured.

Comparing values​

Use equality to match a status such as ready; text matches are case-sensitive. A number can also match its text representation, such as 200 and "200".

Ordering comparisons (<, <=, >=, >) are numeric. They accept numeric text, but do not alphabetically sort words. If either value cannot be interpreted as a number, that condition does not match.

Example​

For a score, add these branches in this order:

NameComparisonTarget
high>=90
medium>=70

A score of 95 takes high, 80 takes medium, and 60 takes default.

Put the more specific condition first: if medium came first, it would also match 95 and high would never be reached.