Format |
if exp {cmds} [else {cmds}] |
exp |
an expression in the current language |
{ cmds } |
See
"Command list". |
This is a conditional command execution. If the expression exp evaluates to a non-zero value, the first group of commands is executed, else the second group, if present. This command can be nested.