Help Center
Help CenterFreeBASIC

End Ifkeyword

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


  • END IF was not supported in single-line IFs in QBASIC.

See also




Example


See example at If...Then.

Reference

  • Documented in KeyPgEndif.html