Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

BOOLEAN( ) Convert to Boolean value

&pagelevel(3)&pagelevel

Domain: Conversion functions
The BOOLEAN( ) function converts the expression specified in the function call to a BOOLEAN value.

Format

BOOLEAN( )

BOOLE( )

EXPRESSION = expression

Result type

BOOLEAN

Input parameters

EXPRESSION = expression
Determines the expression to be converted. If it was not possible to convert “expression”, an error message is displayed.

Result

Data type

Result

expression = ' TRUE' or ’true’
expression = ' FALSE' or ’false’

TRUE
FALSE

expression = 0
expression not equal to 0

FALSE
TRUE

Error message

SDP0429  CONVERSION NOT POSSIBLE

Example

/A = 0 
/B = BOOLEAN(EXPRESSION = A)
/SHOW-VARIABLE B 
B = FALSE