Difference between revisions of "And"

From MultiCharts
Jump to navigation Jump to search
(Created page with "A logical (Boolean) operator that returns <syntaxhighlight>True</syntaxhighlight> only if both of its operands are true. Logical operators are used in logical (Boolean) expres...")
 
Line 1: Line 1:
A logical (Boolean) operator that returns <syntaxhighlight>True</syntaxhighlight> only if both of its operands are true. Logical operators are used in logical (Boolean) expressions that operate with true/false values.   
+
A logical (Boolean) operator that returns [[True]] only if both of its operands are true. Logical operators are used in logical (Boolean) expressions that operate with true/false values.   
  
 
==== Usage ====
 
==== Usage ====
 
<syntaxhighlight>E1 And E2</syntaxhighlight>  
 
<syntaxhighlight>E1 And E2</syntaxhighlight>  
  
Where: <syntaxhighlight>E</syntaxhighlight> - true/false expressions  
+
Where: [[E]]- true/false expressions  
 
   
 
   
 
==== Example ====
 
==== Example ====
2=1 <syntaxhighlight>And</syntaxhighlight> 2=2  will return a value of <syntaxhighlight>False  
+
<syntaxhighlight>2=1 And 2=2  will return a value of False  
  
True And True And True</syntaxhighlight>   will return a value of <syntaxhighlight>True</syntaxhighlight>
+
True And True And True  will return a value of True</syntaxhighlight>
  
  
  
 
[[Category:Comparisons and Loops]]
 
[[Category:Comparisons and Loops]]

Revision as of 12:26, 20 January 2012

A logical (Boolean) operator that returns True only if both of its operands are true. Logical operators are used in logical (Boolean) expressions that operate with true/false values.

Usage

E1 And E2

Where: E- true/false expressions

Example

2=1 And 2=2   will return a value of False 

True And True And True   will return a value of True