Cisco Cisco Unified Contact Center Enterprise 9.0(1) Guia Do Utilizador

Página de 259
Return Value/Example
Data Type
Function
That portion of string2 that precedes the first occurrence of
string1. If string1 does not occur in string2, string2 is returned.
String
before(string1,string2)
If string1 is the null string, the null string is returned. returns the
value abc.
Indicates whether the CLID for the current contact is in the
geographical region specified by string. The value string must be
Logical
ClidInRegion
the name of a defined region. You can use the Name variable of
a region to avoid entering a literal value. tests whether the CLID
is from the Maryland region.
Returns the concatenation of the arguments. The function takes
up to eight arguments. returns the value abcde.
String
concatenate(string1,string2, . . .)
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>
Scripting and Media Routing Guide Cisco Unified ICM/Contact Center Enterprise & Hosted Release 7.5(1)
143
Chapter 7: Using Formulas
Variables