Iteration -- Once Is Not Enough

Two Additional Control Statements

ElseIf

Example

Mini-Exercise #1

Mini-Exercise #1 -- Answer

Contrast  Elseif With Nested If

Caution With Else If

Repeating Terms

General Form Of VB6 Iteration

An Example

Execution of Example

Mini-Exercise #2

Mini-Exercise #2  -- Answer

Mini-Exercise #3

Mini-Exercise #3 -- Answer

Mini-Exercise #4

Mini-Exercise #4 -- Answer

To get out of an infinite loop:

Mini-Exercise #5

Mini-Exercise #5 -- Answer