Skip to content
Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Control Flow Statements › ElseIf

ElseIf

Control flow statement for conditional branching

Syntax

If expression Then
[statement(s)]
[ ElseIf expression Then ]
[statement(s)]
[ Else ]
[statement(s)]
End If
Remark: EndIf (without blank) is also supported like in QB for backward compatibility.

Remarks

Differences from QB

  • None

See also

Examples

See example at If...Then.


Category: Control Flow Statements
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally