User Guide

Comments/ExamplesMeaningOperator
result. Exclusive Or evaluates the result as false and sets a 0 bit in the result. (An
Exclusive Or applies the rule "one or the other, but not both.").
Exclusive Or^
Miscellaneous Operators
The following table lists miscellaneous operators:
Comments/ExamplesMeaningOperator
The conditional operator (?) takes three operands. Its syntax is as follows: ICM software
evaluates the expression by rst 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 valueConcatenation&
The sequential or comma operator (,) takes two operands, each of which is an expression.
ICM software evaluates the left expression rst and then the right expression. The value
Sequential,
of the overall expression is the value of the right expression. The rst 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<<
lled with zeroes: The following example shifts the bits in Avail two places to the right.
In this case, the positions are lled 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 rst, then those with priority 2, and so on.
The order of evaluation within each priority level can also be important. Prex 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.
OperatorsOperator typePriority
+ - ! ~Prex (unary)1
* /Multiplication and division2
+ -Addition and subtraction3
>> <<Shift right and shift left4
< > <= >=Relational5
== !=Equality6
&Bitwise And7
Scripting and Media Routing Guide Cisco Unified ICM/Contact Center Enterprise & Hosted Release 7.5(1)
140
Chapter 7: Using Formulas
Variables