Difference between revisions of "Boolean"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 8: Line 8:
:* Two subexpressions joined by a logical operator form a ''logical expression''.
:* Two subexpressions joined by a logical operator form a ''logical expression''.
:* Logical expressions resolve to a Boolean value: ''1/0'' or ''TRUE/FALSE''.
:* Logical expressions resolve to a Boolean value: ''1/0'' or ''TRUE/FALSE''.
:* Logical expressions can be grouped using parentheses: <tt>()</tt>
:* Use parentheses--<tt>()</tt>--to group expressions logically and to join multiple expressions.
:* Parentheses are used in pairs. For each left parenthesis, there must be a right parenthesis. For example:
:* Parentheses are used in pairs; each open parenthesis "(" requires a closing parenthesis ")".
::<tt>((<expression1> && <expression2>) || <expression3>) && (<expression_4)</tt>
:* For example:
:: <tt>((<expression1> && <expression2>) || <expression3>) && (<expression_4)</tt>
|}
|}

Revision as of 20:37, 10 June 2011

LOGICAL OPERATOR

The logical operators are:
&& Logical AND (and)
|| Logical OR (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> && <expression2>) || <expression3>) && (<expression_4)