Cisco Cisco Unified Contact Center Enterprise 9.0(2) Release Note

Page of 269
Return Value/Example
Data Type
Function
Returns the starting location of string1 within string2. If you
specify an index value, searching starts with the specified
character of string2. returns the value 6.
Integer
find(string1, string2 [,index ])
Returns a value of true-value if the condition is true; false-value
if the condition is false. returns the current hour in 12-hour format
rather than 24-hour format.
Logical
if(condition,true-value,false-value)
Returns left-most n characters of string. returns the value abc.
String
left(string,n)
Returns the number of characters in string. returns the value 3.
Integer
len(string)
Returns a substring of string beginning with the start character
and continuing for length characters. returns the value bcd.
String
mid(string,start,length)
Returns the result of the current Select node. (This function is
valid only in a Select node.) If you are using the LAA rule in the
Floating Point or
Integer
result
Select node, result returns the number of seconds the selected
agent has been available.
Returns right-most n characters of string. returns the value cde.
String
right(string,n)
Returns a substring of string beginning with start character and
continuing for length characters. returns the value 01851.
String
substr(string,start [ , length ])
Converts a numeric value to a string. returns the value "5".
String
text(n)
Returns whether variable has a valid value. tests whether the
database C name is a valid value.
Logical
valid(variable)
If variable has a valid value, returns that value; otherwise, returns
"value". returns either a name from the database or the string
value None.
String
ValidValue(variable,value)
Converts a string to a numeric value. returns the value 5.
Floating Point or
Integer
value(string)
Custom Functions
This section contains the following information:
Note: <Skipped table here>
What are Custom Functions?
Custom functions are those functions you create for use within scripts, as opposed to built-in
functions.
ICM Scripting and Media Routing Guide Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
149
Chapter 7: Using Formulas
Variables