Exploring the Conditional Control Structure
The conditional control structure is used to conditionally execute a set of instructions. The syntax for the condition control structure, in its simplest form, is given as
If condition Then Instruction1 Instruction2 ... InstructionN End If
Here condition is a Boolean expression, one that evaluates to either True or False. If condition evaluates to True, instructions Instruction1 through InstructionN are executed. If condition evaluates to False, Instruction1 through InstructionN are skipped and therefore are not executed.
Conditional statements are commonly referred to as If statements. |
Recall from ...
Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.