19 Control Flow
Control flow is the order in which individual statements, instructions, or function calls of an imperative program are executed or evaluated. The control flow of a program is regulated by control structures. These control structures can be categorized into three main types: sequential, conditional, and loop structures.
19.1 Sequential Structure
19.2 Conditional Structures
19.2.1 If Statement
19.2.2 If Else Statement
19.2.3 If ElseIf Statement
19.2.4 Select Case Statement
19.3 Loop Structures
19.3.1 Do While Loop
Example:
19.3.2 Do Until Loop
Example:
19.3.3 Do Loop While
Example:
19.3.4 Do Loop Until
Example:
19.3.5 For Loop Next
Example:
19.3.6 For Each Next
Example: