False: Difference between revisions
From MultiCharts
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
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> | |||
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]] |
Latest revision as of 11:27, 19 February 2012
A logical (Boolean) value. Logical values are used in logical (Boolean) expressions and for true/false inputs.
Usage
False
Notes
- Also see True for the logical true Boolean value.
- See And and Or for combining true/false expressions in one statement.
Examples
False And True
Will return a value of False.
2 = 1
Will return a value of False.
Declare LogicalVar as a true/false variable with the initial value of false:
Variable: LogicalVar(False);
Declare Overnight as a true/false input with the default value of false:
Input: Overnight(False);