if/else
section is the simplest and most common section, allowing branches in code based on certain conditions.if %Boolean%
is true, the section under the if
clause will be run.if ...
will skip to the end of the current code section, or to the end of the trigger if there is no indent.if
section.else if...
will be skipped.else if...
may not be used on its own. It must have either an if...
or another else if...
directly before it.if/else
tree, all following sections will be ignored.if/else
tree may be finished with one else
block. This does not accept a condition, and runs if none of the preceding conditions passed.