Gasboy CFN III Mgnr's Mnl V3.4 User Manual
Page 209

MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004
Page 193
Advanced Command Files
When using the IF statement the next line must not wrap into the following line or the system
will bypass the first command line and pick up the second line and only execute it. For
example:
IF (condition)
pause;a ~10~14Switch Drawers~0AInsert new drawer containing
$%M1 ‘
~0APress ENTER to continue
The system will bypass the pause;a ... command line and only execute the ~0APress ENTER
to continue line.
It is possible to link the Boolean options together with and and or. An & (ampersand) is the
AND operator and an | (pipe or vertical bar) is the OR operator.
The & and | functions are evaluated left to right:
• & terminates when the first false result is obtained
• | terminates when the first true result is obtained
Avoid using both & and | in the same IF statement because your result may not be what you
expect.
The following example is for demonstration purposes. It does not do anything useful.
-!e filename
With the -!e switch the next argument is treated as a file name.
• If the file does not exist, the commands following the IF statement are
executed.
• If it exists, the commands following the IF statement are skipped, and, if an
ELSE follows, the commands following ELSE are executed. (Unless the
command is executed upon a file in the current directory, filename must
include the path.)
Switch
Meaning