ToBoolean

Category: Strings

Back to System Functions


Signature

ToBoolean(text As String)

Returns

Boolean

Description

Converts a string into a Boolean value.

Accepted values are True, False, 1, and 0. Text matching is case-insensitive, so values such as "true", "FALSE", and "1" work.

If the text is not one of the supported Boolean forms, the result is False.

Example

enabled = ToBoolean("true") fullscreen = ToBoolean("1")