Kentrox AI296 User Manual

Page 246

Advertising
background image

AI296 Version 9.8x User’s Guide

Alias and Call Routing Configuration: Alias Macros

8-42

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 AI296.

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

,

result2

...

)

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.

val(

string

)

or

v(

string

)

Converts a string to its decimal integer value. For
example,

=v(”032”)

returns integer 32.

?(

n

)

Returns the

n

th wildcard string from the alias

match.

Table 8-20 Alias Macro Functions (Continued)

Alias Macro Function

Description of Operation

Advertising