AI232 Version 9.6x User’s Guide
Alias and Call Routing Configuration: Alias Macros
7-22
Functions
Functions are preset command keywords that perform string and value conversions.
Some functions can be entered with only a single character. For example, s and
switch represent the same function.
Note: Functions are not case-sensitive.
Table 7-11 lists available functions and their descriptions in alphabetical order.
& Specifies a boolean logical AND evaluation. This requires that two
conditions are true before continuing with the evaluation.
^ Specifies a boolean logical exclusive OR evaluation. This requires that
one condition or another (not both) is true before continuing with the
evaluation.
| Specifies a boolean logical OR evaluation. This requires that one
condition or both conditions are true before continuing with the
evaluation.
! Specifies a boolean logical NOT evaluation. This changes a true
condition to a false condition (and vice versa) before continuing with
the evaluation.
Table 7-11 Alias Macro Functions
Alias Macro Function Description of Operation
asc(
string
)Returns the ASCII integer value of the first
character in a string.
chr$(
n
)Returns the character that corresponds to ASCII
integer value
n
.
hex$(
n
)
or
h(
n
)
Returns the hexadecimal equivalent to decimal
value
n
. For example, =hex$(31) returns hex value
1F.
if(
expression
,
a
,
b
)
or
i(
expression
,
a
,
b
)
Returns
a
if
expression
is not zero or
b
if
expression
is zero.
Table 7-10 Operators in Order of Precedence (Continued)
Operator Description