if
If the condition is true, runs the commands in the block. Otherwise, runs the commands in the else block.
Argument
Type
Description
condition
string
The condition to evaluate.
then
list of commands
The commands to run if the condition is true.
else
list of commands
The commands to run if the condition is false.
Example Usage
Last updated