END IF
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgEndif
- Last revised: 2020-01-25
Control flow statement for conditional branching.
Syntax
vb
If expression Then [statement(s)] [Else [statement(s)]] [End If]
or
If expression Then : [statement(s)] [Else [statement(s)]] : End If
or
If expression Then
[statement(s)]
[ Elseif expression Then ]
[statement(s)]
[ Else ]
[statement(s)]
End IfRemark: EndIf (without blank) is also supported like in QB for backward compatibility.
Examples
See example at If...Then.
Differences from QB
- END IF was not supported in single-line IFs in QBASIC.
See also
If...Then
Back to DocToc