You can use If…Then…ElseIf…Else…EndIf conditional statements to control execution of your program.
If Condition1 Then [Expression1] [Expression2] [ElseIf Condition2 Then [Expression3]] [Else [Expression4]] [End If]
If A<10 Then B=1
If A<10 Then B=1 Else C=1
If A<10 Then ' When using more than 1 line, B=1 ' do not put any Expressions after "Then". End If
If A<10 Then B=1 Else C=1 End If
If A<10 Then B=1 ElseIf A<20 Then C=1 End If
If A<10 Then B=1 ElseIf A<20 Then C=1 ElseIf A<40 Then C=2 Else D=1 End If