Cisco Cisco IP Contact Center Release 4.6.1 Release Note

Page of 269
Comments/Examples
Meaning
Operator
The conditional operator (?) takes three operands. Its syntax is as follows: ICM software
evaluates the expression by first examining the logical expression condition and then
Conditional
?
doing the following: If the result is true, then the overall expression evaluates to the value
of the expression true-result. If the result is false, then the overall expression evaluates to
the expression false-result. The following expression determines whether the number of
agents available for skill group S1 is even or odd:
The concatenation operator (&) joins two strings end-to-end. returns the value
Concatenation
&
The sequential or comma operator (,) takes two operands, each of which is an expression.
ICM software evaluates the left expression first and then the right expression. The value
Sequential
,
of the overall expression is the value of the right expression. The first expression typically
affects the valuation of the second.
The shift left (<<) and shift right (>>) operators shift the bits within a value. The following
example shifts the bits in Avail two places to the left. The two right-most positions are
Shift left
<<
filled with zeroes: The following example shifts the bits in Avail two places to the right.
In this case, the positions are filled with sign bits (0 if the original value is positive or
zero; 1 if the original value is negative).
Operator Precedence
The following table shows the order in which operators are evaluated.
Note: The operators with priority 1 are evaluated first, then those with priority 2, and so on.
The order of evaluation within each priority level can also be important. Prefix operators are
evaluated from right-to-left in an expression. Assignment operators are also evaluated from
right-to-left. In all other cases where operators have equal priority, they are evaluated left-to-right.
Operators
Operator type
Priority
+ - ! ~
Prefix (unary)
1
* /
Multiplication and division
2
+ -
Addition and subtraction
3
>> <<
Shift right and shift left
4
< > <= >=
Relational
5
== !=
Equality
6
&
Bitwise And
7
^
Bitwise exclusive Or
8
|
Bitwise inclusive Or
9
&&
And
10
||
Or
11
?
Conditional
12
,
Sequential
13
ICM Scripting and Media Routing Guide Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
146
Chapter 7: - Using Formulas
Variables