A full range of mathematical operations can be used in association with functions. Mathematical operations return numbers as results. If any non-numeric values are subjected to mathematical operations (for example, a string), the non-numeric value is returned unmodified.

Calculations that contain more than one arithmetic operation use the standard order of operations. For example, the calculation ${10+15*3-5} returns a value of 50.

Example

The custom attribute (​AtbNumber​) is assigned a numeric data type.

When the value stored in ​AtbNumber​ is ​5​, the following function returns a numeric value of ​15​:

<%${user.CustomAttribute['AtbNumber']*4-5}%>