View Full Version : Using AND in an expression
RobbyH
02-02-2003, 10:24 AM
Are there any articles that deal with how to use AND in an expression?
Derek
02-02-2003, 12:36 PM
Hi RobbyH
AND is pretty straight forward and works as you'd expect it to work /ubbthreads/images/icons/smile.gif
This is from the Help file:
[/quote]
Logical operators are used to combine the results of Boolean expressions. A Boolean expression is just like any other expression, but its result is evaluated to either true or false.
AND - Returns 1 (true) if both of its values are true. Returns 0 (false) otherwise.
[/quote]
If, and only if, both expressions evaluate to True, is the final result TRUE. If either expression evaluates to False, the result is FALSE.
Using an everyday example, for a Windows User to view Internet web pages, you could say ...
<font color=blue>IF (User Has A Web Connection AND User Has A WebBrowser)</font color=blue>
etc .... [lucky for the user!] /ubbthreads/images/icons/smile.gif
RobbyH
02-02-2003, 06:40 PM
Thank you Derek, I missed that in the help file /ubbthreads/images/icons/smile.gif
Rob
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.