faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Language and Syntax

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 22 people (68%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

if AND OR syntax?

Nov 2nd, 2005 09:22
Jason Benson, carsten dfgb,


Example:
<%
Dim Variable1, Variable2, Variable3
Variable1 = 1
Variable2 = 2
Variable3 = "Yes"
If (Variable1 > 0 AND Variable2 > 0) OR (Variable3 = "Yes") Then
Response.Write "Hello World!"
End If
%>
Covered in the Microsoft Windows Script Documentation which is 
available here:
http://download.microsoft.com/download/winscript56/Install/5.6/W982KMeXP
/EN-US/scrdoc56en.exe
Hope that helps!
JB



© 1999-2004 Synop Pty Ltd