bool

bool

bool

Function

Convert the value to a Boolean value according to BT truth rules.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoNoneThe value to convert.

Return value

TypeDescription
BoolReturns the converted Boolean value.

Example

Notes

  • Null, Empty, 0, 0.0, false, empty string, empty array, and empty object are false.