Kentrox AI232 User Manual

Page 169

Advertising
background image

AI232 Version 9.6x User’s Guide

Alias and Call Routing Configuration: Alias Macros

7-23

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.

mid$(

string

,

x

)

or

m(

string

,

x

)

Returns characters from

string

starting with the

x

th character and continuing to the right-most end

character. If

x

is greater than the length of

string

,

the function returns a null string.

myip(

n

)

Returns a string representation of the

n

th IP

address assigned to AI232.

n

must be greater than

0.

pos(

string

,

char

,

n

)

or

p(

string

,

char

,

n

)

Returns the position of the

n

th occurrence of

char

in

string

. If there are less than

n

occurrences of

char

in

string

, the function returns the length of

string

.

right$(

string

,

n

)

or

r(

string

,

n

)

Returns the right-most

n

characters of

string

.

Returns the entire string if

n

is greater than the

length of the string.

str$(

n

)

or

d(

n

)

Returns

n

converted into a decimal string.

switch(

target_exp

,

default

,

exp1

,

result1

,

exp2

,

resul

t2...

)

or

s(

target_exp

,

default

,

exp1

,

result1

,

exp2

,

result2

...

)

If

target_exp

matches

exp1

, the function returns

result1

. If

target_exp

matches

exp2

, the function

returns

result2

. This continues through all pairs of

expressions and results. If

target_exp

does not

match any of the expressions, then

default

is

returned.

Table 7-11 Alias Macro Functions (Continued)

Alias Macro Function

Description of Operation

Advertising