Class BoolFunctionHelper

java.lang.Object
dev.frostlake.functions.scalar.conditional.BoolFunctionHelper

public final class BoolFunctionHelper extends Object
Shared truthiness helper for the BOOLAND / BOOLOR / BOOLNOT / BOOLXOR functions.
  • Method Details

    • truthiness

      public static Boolean truthiness(Object value)
      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).