Help Center
Help Center›FreeBASIC

Thenkeyword

Control flow statement for conditional branching.

Miscellaneous Keywordskeyworddocumented

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




Example


See example at If...Then.

Reference

  • Documented in KeyPgThen.html