Difference between revisions of "True"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
==== Example ==== | ==== Example ==== | ||
− | + | <syntaxhighlight>True Or False will return a value of True | |
− | + | 2=2 will return a value of True | |
− | Declare | + | Declare LogicalVar as a true/false variable with the initial value of true: |
− | + | Variable:LogicalVar(True); | |
− | Declare | + | Declare Overnight as a true/false input with the default value of true: |
− | + | Input:Overnight(True);</syntaxhighlight> | |
[[Category:Comparisons and Loops]] | [[Category:Comparisons and Loops]] |
Revision as of 11:55, 19 January 2012
A logical (Boolean) value. Logical values are used in logical (Boolean) expressions and for true/false inputs.
Usage
Example
True Or False will return a value of True
2=2 will return a value of True
Declare LogicalVar as a true/false variable with the initial value of true:
Variable:LogicalVar(True);
Declare Overnight as a true/false input with the default value of true:
Input:Overnight(True);