help/en/hlp_if.txt
author Myhailo Danylenko <isbear@ukrpost.net>
Fri, 17 Aug 2012 19:09:08 +0300
changeset 29 5d86c5fefef6
parent 0 7707b26e82fd
permissions -rw-r--r--
Update 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"