If+(conditional+statement)

>>> IF STATEMENT <<< Dim myString As String number = 53 If number < 10 Then digits = 1 ElseIf number < 100 Then digits = 2 Else digits = 3 End If If digits = 1 Then myString = "One" Else myString = "More than one"
 * Dim number, digits As Integer

-In the preceding example, the ElseIf condition evaluates to True, and is assigned a value of 2. The last statement then assigns a value of "More than one" to.

> [ statements ] > [ ElseIf elseifcondition [ Then ] > [ elseifstatements ] ] > [ Else > [ elsestatements ] ] > End If - Condition means it can either be a true or false statement of a data. Or you can also use boolean. -Required in the single-line form, optional in the multiple-line form. -One or more statements following If...Then that are executed if condition evaluates to True.
 * If condition [ Then ]