False: Difference between revisions
From MultiCharts
no edit summary
No edit summary |
|||
Line 1: | Line 1: | ||
A logical (Boolean) value. Logical values are used in logical (Boolean) expressions and for true/false inputs. | A logical (Boolean) value. Logical values are used in logical (Boolean) expressions and for true/false inputs. | ||
== Usage == | |||
<syntaxhighlight>False</syntaxhighlight> | <syntaxhighlight>False</syntaxhighlight> | ||
== | == Notes == | ||
* Also see [[True]] for the logical true Boolean value. | |||
* See [[And]] and [[Or]] for combining true/false expressions in one statement. | |||
== Examples == | |||
<syntaxhighlight>False And True</syntaxhighlight> | |||
Will return a value of False. | |||
<syntaxhighlight> | |||
2 = 1</syntaxhighlight> | |||
Will return a value of False. | |||
Declare ''LogicalVar'' as a true/false variable with the initial value of false: | |||
<syntaxhighlight>Variable: LogicalVar(False);</syntaxhighlight> | |||
<syntaxhighlight>Input:Overnight(False);</syntaxhighlight> | Declare ''Overnight'' as a true/false input with the default value of false: | ||
<syntaxhighlight>Input: Overnight(False);</syntaxhighlight> | |||
[[Category:Comparisons and Loops]] | [[Category:Comparisons and Loops]] |