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

Free Components

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

 

 

 

 

 

 

 

 

 

 

 

 

Or

The Or operator performs a boolean Or operation on two boolean expressions. The operator is just like the english language or meaning that if one or the two expressions is true, then the Or operation evaluates to true.

Expr #1 Expr #2 Result
False False False
False True True
True False True
True True True


The Or and And boolean expressions may be strung together to create complex boolean logic. Precedence for these operators always follows from left to right. If you want to override the default precedence, you can do so using parentheses.

If WeekDay(Now()) = 6 Or WeekDay(Now()) = 7 Then
    Response.Write "It's the weekend! Why are you working?"
End If

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"When your are playing for the national championship, it's not a matter of life or death. It's more important than that." - Duffy Daugherty

©2012 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.