Kentrox AI296 Computer Hardware User Manual


 
AI296 Version 9.8x User’s Guide
Alias and Call Routing Configuration: Alias Macros
8-41
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 8-20
lists available functions and their descriptions in alphabetical order.
! Specifies a boolean logical NOT evaluation. This changes a true
condition to a false condition (and vice versa) before continuing with
the evaluation.
Table 8-20 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.
left$(
string
,
n
)
or
l(
string
,
n
)
Returns the left-most
n
characters of
string
. If
n
is
greater than the length of
string
, the function
returns the entire string.
len(
string
)
or
n(
string
)
Returns the length of
string
.
mid$(
string
,
x
,
n
)
or
m(
string
,
x
,
n
)
Returns
n
characters from
string
starting with the
x
th character. If
x
is greater than the length of
string
, the function returns a null string. If fewer
than
n
characters follow character
x
, the function
returns to end of the string.
Table 8-19 Operators in Order of Precedence (Continued)
Operator Description