Difference between revisions of "Boolean"

From AgileApps Support Wiki
imported>Evelyn
m
 
imported>Aeric
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
Boolean operators provide the ability to include or exclude groups of records in [[Expressions]]. Examples of Boolean operators are:
====LOGICAL_OPERATOR====
:<tt>&&</tt> Logical AND (and)
:Logical operators can be used to build more complex expressions.
:<tt>||</tt> Logical OR (or)
:<tt>( </tt> Open Bracket
:<tt> )</tt> Close Bracket


Boolean expressions resolve to a Logical, i.e. ''1/0'' or ''TRUE/FALSE''
:The logical operators are:
:: <tt>AND</tt>
:: <tt>OR</tt>
 
:;Considerations:
::* Two subexpressions joined by a logical operator form a ''logical expression''.
::* Logical expressions resolve to a Boolean value: ''1/0'' or ''TRUE/FALSE''.
::* Use parentheses--<tt>()</tt>--to group expressions logically and to join multiple expressions.
::* Parentheses are used in pairs; each open parenthesis "(" requires a closing parenthesis ")".
::* For example:
:::  <tt>((<expression1> AND <expression2>) OR (<expression3> AND <expression_4>))</tt>
<!--
:::  <tt>((<expression1> && <expression2>) || (<expression3> && <expression_4>))</tt>  -->

Latest revision as of 00:43, 18 October 2011

LOGICAL_OPERATOR

Logical operators can be used to build more complex expressions.
The logical operators are:
AND
OR
Considerations
  • Two subexpressions joined by a logical operator form a logical expression.
  • Logical expressions resolve to a Boolean value: 1/0 or TRUE/FALSE.
  • Use parentheses--()--to group expressions logically and to join multiple expressions.
  • Parentheses are used in pairs; each open parenthesis "(" requires a closing parenthesis ")".
  • For example:
((<expression1> AND <expression2>) OR (<expression3> AND <expression_4>))