TOBOOLEAN

Converts the argument to a Boolean value.

Category: Information and Conversion
Returned data type: Integer
Note: The returned value is a Boolean value that is returned if the argument value can be converted to a Boolean value

Syntax

booleanTOBOOLEAN(value<>)

Required Argument

value

is passed in as one of the following: real, integer, string, or date.

Example

boolean convertedValue
integer result
result = 1
convertedValue = toboolean(result)
Print (convertedValue)