Cisco Cisco Customer Voice Portal 8.0(1) Developer's Guide

Page of 187
Math
The 
Math
 action element is used to evaluate basic mathematical expressions. The mathematical expression is composed
of operators and functions in the form of a string which is passed as a setting to the element, parsed and evaluated at
runtime. The result is a double value stored as a string in either element data or session data. All common arithmetic
operators are supported. Boolean operators are also fully supported. Boolean expressions are evaluated to be either 1.0
or 0.0 (true or false respectively).
This chapter contains the following topics:
Examples
Expression: {Data.Session.myNumber} == 4
Expression: sqrt(16)
Expression: 2 * 4
Result: 1.0
Result: 4.0
Result: 8.0
Settings
Notes
Default
Substitution
Allowed
Single
Setting
Value
Req'd
Type
Name (Label)
Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1)
109
 Chapter 27