Use of Boolean Against Other Data Types
Although BOOLEAN is not inherently convertible to any other data type, the strings 'true' and 'false' (case-insensitive) will be implicitly cast to BOOLEAN in value expressions.For example:
if (true > 'false') then ...
The value 'false' is converted to BOOLEAN.Any attempt to use the Boolean operators AND, NOT, OR and IS will fail.NOT 'False', for example, is invalid.
A BOOLEAN can be explicitly converted to and from string with CAST.UNKNOWN is not available for any form of casting.
|
Note
|
Other Notes
|