True & False Casting
Last updated
Was this helpful?
Last updated
Was this helpful?
This section details how equations within Osmos evaluate boolean statements. The logical formulas and operators detailed in the page involve logical statements which resolve into boolean True
or False
statements. These statements can also be directly represented in the following ways.
true
(these values are not case sensitive):True
T
Yes
Y
false
(these values are not case sensitive):False
F
No
N
If a provided string does match any of the examples above, Osmos will attempt to parse the value as a float.
1.0 = True
0.0 = False
Any other value = Error
1 = True
0 = False
Any other value = Error
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.