Kentrox AI232 manual Greater than the length of string, the function, Returns the entire string

Models: AI232

1 322
Download 322 pages 30.19 Kb
Page 169
Image 169

 

 

AI232 Version 9.6x User’s Guide

 

 

 

Alias and Call Routing Configuration: Alias Macros

 

 

 

 

 

 

Table 7-11 Alias Macro Functions (Continued)

 

 

 

 

Alias Macro Function

Description of Operation

 

 

 

 

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.

 

 

 

 

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

 

 

 

 

7-23

Page 169
Image 169
Kentrox AI232 Greater than the length of string, the function, Returns the entire string, Returns the length of string