+1 888 340 6572

True: Difference between revisions

From MultiCharts
No edit summary
Line 2: Line 2:


==== Usage ====
==== Usage ====
[[True]]
<syntaxhighlight>True</syntaxhighlight>
   
   
==== Example ====
==== Example ====
[[True Or False]]   will return a value of [[True]]
<syntaxhighlight>True Or False  will return a value of True


[[2=2]]   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:  
Declare LogicalVar as a true/false variable with the initial value of true:  


<syntaxhighlight>Variable:LogicalVar(True);</syntaxhighlight>
Variable:LogicalVar(True);


Declare Overnight as a true/false input with the default value of true:  
Declare Overnight as a true/false input with the default value of true:  


<syntaxhighlight>Input:Overnight(True);</syntaxhighlight>  
Input:Overnight(True);</syntaxhighlight>  




[[Category:Comparisons and Loops]]
[[Category:Comparisons and Loops]]

Revision as of 12:42, 20 January 2012

A logical (Boolean) value. Logical values are used in logical (Boolean) expressions and for true/false inputs.

Usage

True

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