Expression Evaluator Evaluate (Long)
Evaluate a mathematical expression and return a long 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 | Long 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 and converted to a long.
Examples
- Evaluate
{BaseValue} * {Multiplier}when the result may exceed integer range. - Use
round({Population} * 1.1)to calculate a larger rounded value for storage in a long.