asInt

fun Boolean?.asInt(): Int

Returns this boolean as an integer.

Return

1 if true, 0 if false, -1 if null.


Returns this boolean as an integer.

Return

1 if true, 0 if false.