Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Please read the Terms of Use for Materials on ZennoLab |
Table of contents
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Description
The Switch statement operator is an extended version of the IF ("If ... then ..." condition).
If the IF statement has only two outcomes - True or False (green or red branches), then Switch has the ability to choose several options. In the absence of the desired option, the cube will be released on the “Default” branch.
...
Via the context menu Add Action → Logic → Switch
...
Or use smart search .
...
What is it used for?
Choosing an option from the list
Checking for a specific occurrence (match)
...
As a condition for the exit, you can use not only hard-coded text, but also variables:
...
Default
If no matches are found, the action will be released on the Default branch.
...
Next, let's create operations Notification (Notification / Logging) for each of the options.
Example video
...
Expand | |||||
---|---|---|---|---|---|
| |||||
You can implement similar functionality via C # C # C# C# code (C sharp code .net) Sample code for the option above
|
Useful links
Variable handling
Variable windowVariables processing