Breadcrumbs

convertToBoolean() Operation

Syntax

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

Semantics

Converts a given string into a Boolean, see 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

set aBoolean = aString.convertToBoolean(); 

Some Examples

Input String

Remark

Output Boolean

true

case sensitive

true

1


false

case sensitive

false

0