help/en/hlp_if.txt
author Myhailo Danylenko <isbear@ukrpost.net>
Fri, 17 Aug 2012 19:10:07 +0300
changeset 31 d7b9a5a84f96
parent 0 7707b26e82fd
permissions -rw-r--r--
fix readme


 /IF [expression]
 /THEN command
 /ELSE command

Evaluates expression and stores true if expression evaluates to non-zero integer or non-unset string, false if it evaluates to unset value, integer zero or unset string.
Then and else commands can be called any number of times - they will use the same stored value.
For details on expression syntax see help for eval command.
Example:
 /if fifo_name
 /then load fifo
 /else echo "fifo_name not set, fifo module not loaded"