Boolean Values (True and False)

Boolean values are used to describe logical truths - whether something is "true" or "false." In fact, true and false are the only two possible Boolean values.

Boolean values are often used to describe the results of logical comparisons like "10 > 5" and "tree = dog." We say that "10 > 5" is true, because 10 is greater than 5. We say that "tree = dog" is false, because the string "tree" is not equal to the string "dog."

In Setup Factory, an expression is considered true if it resolves to either the word "true", any non-zero integer value (such as "1" or "41395"), or any real number that is greater than 1.0 or less than -1.0. An expression is considered false if it resolves to anything else-in other words, an expression is false if it resolves to the number 0, the number 0.9, or any string other than "true" (such as "false" or "raspberry").

NOTE

 

True and false are also used symbolically to represent yes/no and on/off in Setup Factory. For instance, when a check box is checked, its variable is set to True, and when it's unchecked, its variable is set to False.