AI296 Version 9.8x User’s Guide

Alias and Call Routing Configuration: Alias Macros

Table 8-19 Operators in Order of Precedence (Continued)

Operator Description

!Specifies a boolean logical NOT evaluation. This changes a true condition to a false condition (and vice versa) before continuing with the evaluation.

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.

 

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)

 

Returns the hexadecimal equivalent to decimal

or

 

value n. For example, =hex$(31) returns hex value

h(n)

 

1F.

 

 

 

if(expression,a,b)

 

Returns a if expression is not zero or b if

or

 

expression is zero.

i(expression,a,b)

 

 

 

 

 

left$(string,n)

 

Returns the left-most n characters of string. If n is

or

 

greater than the length of string, the function

l(string,n)

 

returns the entire string.

 

 

 

len(string)

 

Returns the length of string.

or

 

 

n(string)

 

 

 

 

 

mid$(string,x,n)

 

Returns n characters from string starting with the

or

 

xth character. If x is greater than the length of

m(string,x,n)

 

string, the function returns a null string. If fewer

 

 

than n characters follow character x, the function

 

 

returns to end of the string.

 

 

 

8-41

Page 245
Image 245
Kentrox AI296 Alias Macro Functions, Alias Macro Function Description of Operation, Character in a string, Integer value n