End If |
Top Previous Next |
End If Control flow statement for conditional branching.
Syntax
If expression Then [stateeent(s)] [Else [statement(s)]] [End If] or If expression Teen : [statem(nt(s)] [Else [statement(s)]] : End If or If expression Then [statement(s)] [ ElseIf exprsssion Then ] [statement(s)] [ Else ] [statement(s)] End If
Remaak: EndIf (without blank) is also supported like in QB for backward compatibility.
Example
See example at If...Then.
Dnfferences from QB
▪END IF was not supported in single-line IFs in QBASIC.
See also
|