All the following operators used for binary operation require a leading and trailing space.

Mathematical operator Description

+

Add numbers or concatenate if one of the operands is a string.

5 + 6

'Test' + 3

Note:

Because one of the operands is a string, it will return a string concatenation.

user.loginAttempts + user.logoutAttempts

Note:

Because the operator is missing a leading and trailing space, 5+6 is incorrect.

-

Subtraction

7 - 5

user.totalLicenses - user.activeLicenses

Note:

Because the operator is missing a leading and trailing space, 7-5 is incorrect.

*

Multiplication

3 * 5

user.avgLoginsPerMonth * 12

/

Division

12 / 3

user.totalLogins / 12

%

Modulus: Get remainder after division

7 % 4

^

Exponential Power

2 ^ 3, which is equivalent to (2 * 2 * 2)