Example BigDecimal Code

In the following two examples, the script variables used in the expressions are listed in the top right of each example.

A Simple Expression Using a BigDecimal and Two Script Variables
A Complex Expression Using a BigDecimal and Two Script Variables
Note

The preceding example is of a complex expression. This type of expression, one surrounded by braces and having more than one statement, is specific to the Java language and requires that you have a Java license. If your script contains a complex expression and you do not have a Java license, then when you load that script in the Cisco Unified CCX Engine, the script is declared invalid and you will not be able to run it.