Class BoolFunctionHelper
java.lang.Object
dev.frostlake.functions.scalar.conditional.BoolFunctionHelper
Shared truthiness helper for the BOOLAND / BOOLOR / BOOLNOT / BOOLXOR functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Booleantruthiness(Object value) Interprets a value as a three-valued boolean.
-
Method Details
-
truthiness
Interprets a value as a three-valued boolean. NULL stays NULL (UNKNOWN); booleans pass through; numbers and numeric/boolean strings are TRUE when non-zero and FALSE when zero. Non-numeric, non-boolean strings are treated as TRUE (present, non-null).
-