Skip to main content
Skip table of contents

convertToBoolean() Operation

Syntax

set aBoolean = aString.convertToBoolean()
set aBoolean = convertToBoolean(LITERAL)

Semantics

convertToBoolean() converts a given string into a Boolean (see also examples below).
All other conversions are illegal and will raise an error.

Substitutables

aString

Can be any variable or object attribute having the type String.  

LITERAL

String literal.

Error Codes

Find the related error codes on System Errors of type conversion operations.

FUTSM/3

Illegal conversion

Examples

NONE
set aBoolean = aString.convertToBoolean(); 

Some Examples

Input String

Remark

Output Boolean

true

case sensitive

true

1

false

case sensitive

false

0

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.