Switch Case

Switch Case node lets you check for a condition based on a variable which might be the result of some other conditions as well. Depending on the value of the variable, the Flow Execution will be sent to the branch matching that particular value.

Adding Switch Case node at the end

As you see in the below image, a Switch Case node comes with two default child branches - Default Case and Add Case branch. You can keep adding cases in the switch as well as use the Default Branch for Default case.

Adding Switch Case node between 2 nodes

If you try adding the Switch Case node between 2 existing nodes, you will see a popup asking you which branch should the existing children be part of.

This is because Switch Case node breaks the flow into 2 or more separate branches, which never merge.

Deleting Switch Case node

If you plan to delete the Switch Case node, keep in mind that it will delete the whole flow below the current Switch Case node as the system does not know which branch to connect to the parent node.

Properties Panel

Returns

condition - The boolean result of the condition at runtime. You can access this using Magical Autocomplete (Eg. $.<node_name>.condition) in any node below this node.

Last updated