Expression Evaluator Evaluate (Integer)
Evaluate a mathematical expression and return an integer result.
Parameters
| Parameter | Description |
|---|---|
| Expression | Expression to evaluate. Use {VariableName} to reference FSM variables. |
| Succeeded | Optional bool variable set to true if the expression evaluated successfully. |
| Result | Integer variable that receives the evaluated result. |
Details
Expressions support numeric operators, parentheses, built-in time values, and whitelisted math functions. Results are evaluated as double precision first, then rounded to the nearest integer.
Examples
- Evaluate
({Score} / 100) + {Bonus}and store the rounded result as an integer. - Use
max({Lives}, 0)to clamp a computed integer-like result before storing it.