Conditional branches are how computers can be programmed to make decisions based on varying conditions.
Without conditional branches, computers would not be able to 'Think'.
There are 2 kinds of conditional branches in Visual Basic(excluding conditional branches in LINQ(Where))
Option
Strict
On
Public
Class
Form1
Private
Sub
Button1_Click(
ByVal
sender
As
System.
Object
,
e
System.EventArgs)
Handles
Button1.Click
Dim
Name
String
=
"Paul"
If
Name =
Then
MsgBox(
"Hello Paul!"
)
ElseIf
"Jim"
"Hello Jim"
Else
"Who are you?"
End
Select
Case
"Hello Jim!"
Summary
Conditional branches are a fundamental component of programming and computers.
I hope you find this helpful, Please edit if you find any errors or omissions.
Richard Mueller edited Revision 2. Comment: Removed tags "If", "then", "select", "basic", and "visual", changed tag "code" to "Has Code".