AgileApps Support Wiki Pre Release

Difference between revisions of "Boolean"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 3: Line 3:


:The logical operators are:  
:The logical operators are:  
::<tt>&&</tt> Logical AND (and)
:: Logical <tt>AND</tt>
::<tt>||</tt> Logical OR (or)
:: Logical <tt>OR</tt>


:;Considerations:
:;Considerations:

Revision as of 17:46, 13 June 2011

LOGICAL_OPERATOR

Logical operators can be used to build more complex expressions.
The logical operators are:
Logical AND
Logical 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>))