The VBScript Network and Systems Administrator's Cafe:

Conditional statements

1

August 9, 2008  1:57 AM

VBScript Statements: Explanation of the While … Wend Statement



Posted by: Jerry Lees
Conditional statements, VBScript, VBScript Statements, wend, while, while wend

The While conditional statement is useful because it allows you to repeat a block of code as long as a conditional test is True, rather than just a simple number of times. It is useful in situations where you need to loop through code,...

July 2, 2008  12:06 AM

VBScript Statements: Explanation of the For Each … Next Statement



Posted by: Jerry Lees
Conditional statements, for, for each, for each next, next, VBScript Statements, vbscriptstatements, working with arrays

The For Each Next statement combination is very useful for situations where you need to loop through a piece of code a specific number of times, just like the For Next statement, except that you may not even know at run time how many...


June 28, 2008  11:20 PM

VBScript Statements: Explanation of the For … Next Statement



Posted by: Jerry Lees
Conditional statements, for, for next, next, step, VBScript, VBScript Statements, vbscriptstatements

The For Next statement is very useful for situations where you need to loop through a piece of code a specific number of times.    You can use Exit For statements to exit out of a For loop, if you need to check for a...


June 14, 2008  10:19 PM

VBScript Statements: Explanation of the Do Loop Statement



Posted by: Jerry Lees
Conditional statements, do loop, do until, do while, until, VBScript, VBScript Statements, vbscriptstatements, while

The Do ... Loop statement is very useful (like, for ... next and Select ... case) to execute a block of code more than once. However, where it differs from the other two is that the Do ... Loop statement executes the code as long as (while) a condition is true or...


1

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: