Introduction
Branches are control flow functions which rule whether following statements or blocks shall be executed or not.
- if() ... else: Conditional branches
- once() ... else: Following statement or block is executed once only
- switch() ... case(): Branches to statements or blocks where the condition is met. Only 1 case where the expression matches will be executed.
- check() ... case(): Branches to statements or blocks where the condition is met. All cases where the expression matches will be executed.
See also the exception functions throw() / catch() for skipping the remaining code inbetween.
Procedures and Functions Provided:
conditional branches:
if
unless
one-time execution:
once
alternative execution of code blocks:
check
switch
case
Break and continue cases and loops:
break
continue
break loop
continue loop
break case
continue case
continue with next case