Parser Logic And Maths

In Real/Integer expressions, Bidmas is not followed - calculations are done in order, so use brackets.

+ Add
- Subtract
* Multiply
/ Divide
^ Power
POW Power
SUM Add

# Example

~ myreal = (1.1 + ((2.1 / 0.2) * -2)) ^ 2
! myint = (myreal + 1) + 1

Note: care must be taken with the minus to distinguish between the subtract operator and a negative number. Because of the brute-force nature of the calculation logic, 2 * - 3 becomes 2 - 3 (result = -1), whereas 2 * -3 gives a correct result of -6. (Notice the position of the spaces: minus surrounded by spaces is an operator, otherwise it's a negative number).

In Boolean expressions, you may also use brackets and variables.

AND
OR
XOR
NOT

# Example

? option1 = TRUE
? option2 = NOT option1
? option3 = (option1 OR option2) AND (NOT FALSE)