Mathematical Operations (General)
- 1 Minute to read
- Print
- DarkLight
Mathematical Operations (General)
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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}%>
Was this article helpful?