action:Switch_or_Case
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Switch_or_Case [2021/10/15 05:31] – [Conditions] peternlewis | action:Switch_or_Case [2022/09/18 02:49] (current) – [Switch/Case Action] peternlewis | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| The _Switch_ Action is a good alternative to using multiple, nested, [[action: | The _Switch_ Action is a good alternative to using multiple, nested, [[action: | ||
| + | |||
| + | The actions in the first section that matches will be executed. If no section matches, then no actions will be executed and the execution will continue after the Switch/Case action. Under no circumstances will actions from more than one section be executed - that is, execution does not “fall through” to following sections as happens in some languages. | ||
| ===== Parameters ===== | ===== Parameters ===== | ||
| Line 58: | Line 60: | ||
| - | The _Otherwise_ _Condition_ will execute if none of the above _Conditions_ are met. The _Switch_ Action will then exit. So, the _Otherwise_ _Condition_ should always be placed as the last _Condition_ in the _Switch_ Action. | + | The _Otherwise_ _Condition_ will execute if none of the previous |
| ===== See Also ===== | ===== See Also ===== | ||
action/Switch_or_Case.1634275889.txt.gz · Last modified: by peternlewis
