BOOL_TO_INT(A)
Converts a boolean to an integer (0 or 1)
Integer BOOL_TO_INT(Boolean A)
A - Boolean value
Integer value. (0 or 1)
> PRINT BOOL_TO_INT(TRUE)
1
> PRINT BOOL_TO_INT(FALSE)
0