Specifications

Version 2.0
143
Table 21 Boolean Functions
Function Definition
IsInt Evaluates to true if the parameter string that follows is a number (as defined
below) and false otherwise.
Exists Evaluates to true if the file specified by string exists is in the current working
directory or false if not.
Available Evaluates to true if the file specified by string is in the current working
directory or current path.
Profile Determines whether the parameter string matches one of the profile names in
the
profiles environment variable.
No spaces are allowed between function names and the open parenthesis, between
the open parenthesis and the string or between the string and the closed parenthesis.
Constant strings containing spaces must be quoted.
Note: To avoid ambiguity and current or future incompatibility, users are strongly
encouraged to surround constant strings that contain parenthesis with
quotes in if statements.
Conditional Expressions
Not inverts the sense of only the following expression.
Numbers
Allowable number formats are decimal numbers and C-style case insensitive
hexadecimal numbers. Numbers may be preceded by a “-“ indicating a negative
number. Examples:
13
46
-0x3FFF
0x3fff
0x1234
Unsigned values must be less than 2
64
. Signed integer values are bounded by ±2
63
.
Numbers are internally represented in two’s compliment form. The representation of
the number in the string has no bearing on the way that number is treated in an
numeric expression – type is assigned by the operator. So, for example, -1 lt 2 is
true but -1 ult 2 is false.