True & False Casting
Overview
This section details how equations within Osmos evaluate boolean statements. The logical formulas and operators detailed in the Logical Formulas & Operators page involve logical statements which resolve into boolean True or False statements. These statements can also be directly represented in the following ways.
Strings
Strings which evaluate to true (these values are not case sensitive):
true (these values are not case sensitive):True
T
Yes
Y
Strings which evaluate to false (these values are not case sensitive):
false (these values are not case sensitive):False
F
No
N
Other strings
If a provided string does match any of the examples above, Osmos will attempt to parse the value as a float.
Floats
Floats are evaluated as follows:
1.0 =
True0.0 =
FalseAny other value = Error
Integers
Much like floats, integers are evaluated as follows:
1 =
True0 =
FalseAny other value = Error
Other
Any other values used as a boolean True/False value will result in an error. Note, however, that many logical formulas resolve into a viable boolean True or False value.
Last updated
Was this helpful?
