Skip to main content
Skip table of contents

convertToBoolean() Operation

Syntax
NONE
set aBoolean = aString.convertToBoolean()
set aBoolean = convertToBoolean(LITERAL)
SemanticsconvertToBoolean() returns true if the string true is passed as parameter. false is returned for all other values. Alternatively, the figures 0 for false or 1 for true can be used as parameters.
If the conversion is not possible, an error message is raised (for instance: NULL strings).
SubstitutablesaString Can be any variable or object attribute having the type String.  
LITERAL String literal.
Examples
NONE
set aBoolean = aString.convertToBoolean(); 
For a UML example, refer to section Type Converter Operations.
JavaScript errors detected

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

If this problem persists, please contact our support.