+1 888 340 6572

True: Difference between revisions

From MultiCharts
 
(4 intermediate revisions by 2 users 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 ====
== Usage ==
[[True]]
<syntaxhighlight>True</syntaxhighlight>
   
   
==== Example ====
== Notes ==
<syntaxhighlight>True Or False   will return a value of True
* Also see [[False]] for the logical false Boolean value.
* See [[And]] and [[Or]] for combining true/false expressions in one statement.


2=2  will return a value of True  
== Examples ==
<syntaxhighlight>True Or False</syntaxhighlight>
Will return a value of True.


Declare LogicalVar as a true/false variable with the initial value of true:
<syntaxhighlight>
2 = 2</syntaxhighlight>
will return a value of True


Variable:LogicalVar(True);
Declare ''LogicalVar'' as a true/false variable with the initial value of true:  


Declare Overnight as a true/false input with the default value of true:
<syntaxhighlight>Variable: LogicalVar(True);</syntaxhighlight>


Input:Overnight(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]]

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

True

Notes

  • Also see False for the logical false Boolean value.
  • See And and Or for combining true/false expressions in one statement.

Examples

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);