AI296 Version 9.8x User’s Guide

Alias and Call Routing Configuration: Alias Macros

Table 8-20 Alias Macro Functions (Continued)

Alias Macro Function

Description of Operation

 

 

mid$(string,x)

Returns characters from string starting with the

or

xth character and continuing to the right-most end

m(string,x)

character. If x is greater than the length of string,

 

the function returns a null string.

 

 

myip(n)

Returns a string representation of the nth IP

 

address assigned to AI296. n must be greater than

 

0.

 

 

pos(string,char,n)

Returns the position of the nth occurrence of char

or

in string. If there are less than n occurrences of

p(string,char,n)

char in string, the function returns the length of

 

string.

 

 

right$(string,n)

Returns the right-most n characters of string.

or

Returns the entire string if n is greater than the

r(string,n)

length of the string.

 

 

str$(n)

Returns n converted into a decimal string.

or

 

d(n)

 

 

 

switch(target_exp,

If target_exp matches exp1, the function returns

default,exp1,result1,exp2

result1. If target_exp matches exp2, the function

,result2...)

returns result2. This continues through all pairs of

or

expressions and results. If target_exp does not

s(target_exp,default,exp1

match any of the expressions, then default is

,result1,exp2,result2...)

returned.

 

 

val(string)

Converts a string to its decimal integer value. For

or

example, =v(”032”) returns integer 32.

v(string)

 

 

 

?(n)

Returns the nth wildcard string from the alias

 

match.

 

 

8-42

Page 246
Image 246
Kentrox AI296 Alias Macro Functions, Returns characters from string starting with, Function returns a null string, Match