booleanValue

fun booleanValue(defaultValue: Boolean): Boolean

Converts the tristate to a boolean value.

If the tristate is UNDEFINED, the provided default value is returned.

Return

true if the tristate is TRUE, false if it is FALSE, or the defaultValue if it is UNDEFINED.

Parameters

defaultValue

The default boolean value to use if the tristate is UNDEFINED.