Skip to content

Switch

Suppose we want to do some operations according to the day of the week. If we use If branching, we will add quite some nodes:

By using Switch, we only need one node for branching.

Add Node

Right-Click anywhere on canvas, select Flow Control/Switch

Connect

Tip

Note that we didn't enumerate Sunday, it falls back to the default branch. The default branch will be executed if no other branch is matched.