The BooleanToInteger function is a built-in function that converts Boolean b to an Integer value, either 1 if b is true or 0 if b is false.

Input parameters

b: Boolean Type

Output parameters

Integer Type

Examples

Usage

Result

BooleanToInteger( True )

1

BooleanToInteger( False )

0

See Also

Available Conversion Functions to Integer | Available Built-in Functions