bayesia logo

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].

Formula Output

Whenever the specified formula is evaluated, it automatically determines the variable type of its output as per the following criteria:

ConditionVariable TypeNode 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 StringDiscrete
Variables that feature states containing any non-number characters are typed as String.StringDiscrete
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 StringDiscrete
Variables that exclusively contain numerical values, of which at least one is real-valued, are typed as Real.RealContinuous

Copyright © 2025 Bayesia S.A.S., Bayesia USA, LLC, and Bayesia Singapore Pte. Ltd. All Rights Reserved.