- Contents
Interaction Designer Help
Creating Expressions
Expressions are formulas that process literal values, variables, and operators to create a new value. You'll find this type of processing useful in all but the simplest handlers, so understanding how to create expressions will allow you to create flexible and powerful handlers. This topic offers the information you need to begin building your own expressions.
You can create an expression for any input parameter that takes a normal value. You cannot create expressions for input parameters that take extended values, such as Call ID. Also, you cannot create an expression in an output parameter. Output parameters can contain only variables that receive a tool's output values.
See Expression Editor Assistant for detailed instructions on creating expressions.
Sample Expressions
Maximum Number of Keys
Expression: 1
The maximum number of keys a caller may press before this tool exits is 1.
Escape Keys
Expression: "*"
The valid string values for Escape Key is the * key. (Since this input parameter takes a string, the * is within quotation marks.)
Call ID
Expression: CallA
The identifier for this call is stored in the CallA variable.
User Queue
Expression: StrMid ("User Queue:StephenS",11,30)
Returns 30 characters starting at character 11, effectively removing the "User Queue:" portion of the specified string.
Prompt Name
Expression: "IVR_REMOTE_VM_" & PromptName
Combines two strings into a single string; one is hard coded and one is contained in the PromptName string variable.
Agent Name
Expression: GetHead(AvailableAgentList)
Returns the first string in a list of strings.
Variable: Loopcount
Expression: Loopcount + 1
Increments the integer variable loopcount by 1.
Path
Expression: "c:\\root\\foos"
When CIC parses this string, the \\ is interpreted as a single \. This is explained in the Expression Editor Assistant section.
Creating Expressions Without Using Expression Editor Assistant