Changes
Jump to navigation
Jump to search
And
,no edit summary
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.
==== Usage ====
<syntaxhighlight>E1 And E2</syntaxhighlight>
Where: <syntaxhighlight>[[E</syntaxhighlight> ]]- true/false expressions
==== Example ====
<syntaxhighlight>2=1 <syntaxhighlight>And</syntaxhighlight> 2=2 will return a value of <syntaxhighlight>False
True And True And True</syntaxhighlight> will return a value of <syntaxhighlight>True</syntaxhighlight>
[[Category:Comparisons and Loops]]