OPERATOR:  AND

AND

The AND operator is used to perform a logical conjunction on two expressions. The expressions must be of Boolean subtype (TRUE or FALSE) or NULL. The order of the expressions in the comparison is not important.

Code:
<% =TRUE AND TRUE %>
<% =TRUE AND FALSE %>
<% =FALSE AND TRUE %>
<% =FALSE AND FALSE %>

<% =TRUE AND NULL %>
<% =NULL AND TRUE %>
<% =FALSE AND NULL %>
<% =NULL AND FALSE %>
<% =NULL AND NULL %>

Output:
True
False
False
False

(Null output)
(Null output)
False
False
(Null output)

Code:
<% anyexpression = TRUE %>
<% someexpression = FALSE %>
<% =anyexpression AND someexpression %>

Output:
False


Copyright 1999 by Infinite Software Solutions, Inc.
Trademark Information