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

convertToBoolean() converts a given string into a Boolean.

Output BooleanInput StringRemark
truetruecase sensitive
1
falsefalsecase sensitive
0

All other conversions are illegal and will raise an error.

SubstitutablesaString Can be any variable or object attribute having the type String.  
LITERAL String literal.
Error CodesFind the related error codes on System Errors of type conversion operations.
FUTSM/3Illegal conversion
Examples
set aBoolean = aString.convertToBoolean(); 
  • No labels