Skip to content
Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Intrinsic Defines › True

True

Intrinsic constant set by the compiler

Syntax

Const True As Boolean

Description

Gives the True Boolean value where used.

Remarks

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __True.

Differences from QB

  • New to FreeBASIC

See also

Examples

Dim b As Boolean = True

If b Then

    Print "b is True"

Else

    Print "b is False"

End If
b is True

Category: Intrinsic Defines
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