syntax of if else statement in vb.net code example
Example: if else statement vb.net
'If statement
If [condition] Then
[action]
End If
'else if & else statement
If [condition] Then
[action]
ElseIf [another condition] Then
[action]
Else 'if none of the conditions are true then carry out the action
[action]
End If