Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

And

The And operator is used to combine boolean statements together and has the same meaning of the English language. If the two boolean statements are both true, the result of the And operation is true. If either of the statements is false, than the result is false.

This behavior is depicted in the chart below:

Expr. #1 Expr. #2 And Result
False False False
False True False
True False False
True True True


Below is an example of the And operator. It will only output the statement when both of the conditions are met (which means that both of the expressions evaluate to true)

If I < 0 And J > 3 Then Response.Write "I < 0 And J > 3"


The counterpart of the And operator is the Or operator which evaluates to true if either of the expressions is true.

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"All programmers are playwrights and all computers are lousy actors." - Anon

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.