True: Difference between revisions
From MultiCharts
m
→Examples
m (→Examples) |
|||
(One intermediate revision by the same 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>True</syntaxhighlight> | <syntaxhighlight>True</syntaxhighlight> | ||
== | == Notes == | ||
* Also see [[False]] for the logical false Boolean value. | |||
* See [[And]] and [[Or]] for combining true/false expressions in one statement. | |||
== Examples == | |||
<syntaxhighlight>True Or False</syntaxhighlight> | |||
Will return a value of True. | |||
<syntaxhighlight> | |||
2 = 2</syntaxhighlight> | |||
will return a value of True | |||
Declare ''LogicalVar'' as a true/false variable with the initial value of true: | |||
<syntaxhighlight>Variable: LogicalVar(True);</syntaxhighlight> | |||
Declare ''Overnight'' as a true/false input with the default value of true: | |||
<syntaxhighlight>Input: Overnight(True);</syntaxhighlight> | |||
[[Category:Comparisons and Loops]] | [[Category:Comparisons and Loops]] |