Cisco Cisco IPCC Web Option User Guide

Page of 259
Operators
Prefix Operators
The Prefix Operators in the following table take a single operand:
Comments/Examples
Meaning
Operator
Numeric values are positive by default, so the positive operator (+) is optional.
Example: 2 and +2 represent the same value.
Positive
+
The negative operator (-) changes the sign of a value. Example: 2 represents a
positive value; -2 represents a negative value.
Negative
-
A logical expression is any expression that evaluates to true or false. The logical
negation operator (!) changes the value of a logical expression. Note: Numerically,
Logical negation
!
a false value equates to 0 and a true value equates to a non-zero value. Example:
If the current value of SkillGroup.Sales.Avail is 3, then SkillGroup.Sales.Avail >
0 is true and (SkillGroup.Sales.Avail > 0) is false.
Operates on a bit value, changing each 1 bit to 0 and each 0 bit to 1. Note: This
operator is rarely used.
One's complement
~
Arithmetic Operators
The Arithmetic Operators in the following table take two operands:
Comments/Examples
Meaning
Operator
Arithmetic operators perform the basic operations of addition, subtraction,
multiplication and division. You can use them in making calculations for a
Multiplication
*
skill group, service, or route. Note: Multiplication (*) and division (/) operators
are evaluated before addition (+) and subtraction (-) operators. Examples:
returns the number of agents who are logged on to the service but not currently
available. evaluates to because the multiplication is performed first.
Division
/
Addition
+
Subtraction
-
Equality Operators
The Equality Operators in the following table take two operands:
Comments/Examples
Meaning
Operator
Equality operators allow you to determine whether two values are
equivalent or not. Examples: is true if any calls are currently queued for
Equal to
==
the service. is true if all agents logged on to the service are currently
available.
Scripting and Media Routing Guide Cisco Unified ICM/Contact Center Enterprise & Hosted Release 7.5(1)
138
Chapter 7: Using Formulas
Variables