VBScript Conditional Statements
VBScript Conditional Statements
Very often when you write code, you want to perform different actions Web Hosting UK
for different decisions. You can use conditional statements in your code Dedicated Servers UK
to do this. Domain Names UK
Business Web Hosting
In VBScript we have three conditional statements: Free Web Hosting
Cheap Web Hosting
if...then...else statement - use this statement if you want to Web Hosting Reseller
select one of two sets of lines to execute
Website Design UK
if...then...elseif statement - use this statement if you want to
select one of many sets of lines to execute Reseller Hosting
select case statement - use this statement if you want to
select one of many sets of lines to execute HTML & Flash
Download HTML Editor
Flash Web Builder
Flash Templates
If....Then.....Else HOTELS
Amsterdam Hotels
Boston Hotels
You should use the If...Then...Else statement if you want to Chicago Hotels
London Hotels
execute some code if a condition is true Los Angeles Hotels
select one of two blocks of code to execute Miami Hotels
New York Hotels
If you want to execute only one statement when a condition is true, New Orleans Hotels
you can write the code on one line: Paris Hotels
Rome Hotels
if i=10 Then msgbox "Hello" Hotel Reservations
Discount Hotels
Hotel Rooms
There is no ..else.. in this syntax. You just tell the code to perform one
action if the condition is true (in this case if i=10). Web Building
Website Templates
If you want to execute more than one statement when a condition is
true, you must put each statement on separate lines and end the Website Builder
statement with the keyword "End If": Flash Templates
Web Templates
The first block of code will be executed if the condition is true, and the Read W3Schools
other block will be executed otherwise (if i is not equal to 10).
Hosting Tutorial
SELECTED LINKS
University Online
Master Degree
Bachelor Degree
Web Security
Web Statistics
Web Standards
Web Quality
Product Spotlight
If you want to be a Web Master, you will have to host your web site
with an ISP (Internet Service Provider).
Visit Redstation
Dan Shafer's book is the definitive guide to learning and applying the
principles of CSS to your Website.
Search W3Schools:
Go!
Does the world know about us? Check out these places:
Google Yahoo Alta Vista MSN Lycos Excite Ask Jeeves HotBot