Decision Branching
Decision branching is a programming construct that allows a program to execute different sets of instructions based on a condition or set of requirements. There are several ways to implement decision branching in programming languages, but the most common methods include If
statements, switch
or Case
statements, and ternary operators.
In this chapter, we’re going to cover the following main topics:
If
statementsCase
statements- Ternary operators
- VB.NET
OrElse
operator - VB.NET
AndAlso
operator