Difference between revisions of "And"
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 | + | 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: | + | Where: [[E]]- true/false expressions |
==== Example ==== | ==== Example ==== | ||
− | 2=1 | + | <syntaxhighlight>2=1 And 2=2 will return a value of False |
− | True And True And True | + | 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