Variable Types
Using Variables in Formulas
Four types of variables are supported in Formulas.
-
Boolean: Depending on the locale, Boolean variables include, for instance,
{True, False}
,{vrai, faux}
,{yes, no}
,{oui, non}
, etc. The states of Boolean variables are not case-sensitive, i.e.,{TRUE, FALSE}
is equivalent to{true, false}
. -
String: Any sequence of characters enclosed by quotes, e.g.,
"az)9*{'d r&"
. -
Numerical Variables:
- Integer: Defined by the interval
[-2147483648, 2147483647]
. - Real: Defined by the interval
[4.9 E-324, 1.7976931348623157 E308]
.
- Integer: Defined by the interval
Formula Output
Whenever the specified formula is evaluated, it automatically determines the variable type of its output as per the following criteria:
Condition | Variable Type | Node Type |
---|---|---|
Variables with only two states, e.g., TRUE and FALSE are typed as Boolean. Depending on the context, they can alternatively be treated as String. | Boolean or String | Discrete |
Variables that feature states containing any non-number characters are typed as String. | String | Discrete |
Variables exclusively containing Integer values in all their states are typed as Integer. Depending on the context, they can alternatively be treated as String. | Integer or String | Discrete |
Variables that exclusively contain numerical values, of which at least one is real-valued, are typed as Real. | Real | Continuous |