Conditional Instructions
It is often necessary to make the execution of Jade instructions dependent upon a condition or at some point to choose to execute one of a sequence of instructions from several selections.
The conditional instructions provided by Jade are listed in the following table.
Instruction | Purpose |
---|---|
executeWhen | Loads and executes Jade instructions if a Boolean flag value is true |
if | Executes Jade instructions dependent upon a condition |