Syntax
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
set aBoolean = aString.convertToBoolean(); 
For a UML example, refer to section Type Converter Operations.
  • No labels