VB.NET tutorial: Conditional Statements-IF..Else..End if
Conditional Statements-IF..Else..End if
if condition then
If you use the above general form, The statements are executed when the condition is true. There is no statement to execute when the condition is false.
The below syntax will exceute the false block when the condition is not true.
If have multiple conditions to check, you can use the below form of the If stament:
If condition1 then
Else If condition2 then