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

Home › Miscellaneous Keywords › Then

Then

Control flow statement for conditional branching.

Syntax

If expression Then [statement(s)] [Else [statement(s)]] [End If]
If expression Then : [statement(s)] [Else [statement(s)]] : End If
If expression Then
[statement(s)]
[ ElseIf expression Then ]
[statement(s)]
[ Else ]
[statement(s)]

Remarks

Differences from QB

  • None

See also

Examples

See example at If...Then.


Category: Miscellaneous Keywords
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