Handlebar Helper Function: Not

Performs a logical NOT operation on a value. The function returns true if the operand evaluates to false, or false if the operand evaluates to true.

This helper is available in the Winter ’26 release of Marketing Cloud Next (API version 65.0).

ParameterTypeDescription
valueAnyThe operand to perform a logical NOT operation on.

The function returns true if the operand evaluates to false, and false if the operand evaluates to true. If you don’t provide a parameter, the function returns true.

The evaluation follows these rules:

  • null is false.
  • Boolean values are returned as-is.
  • 0 is false. Any non-zero number is true.
  • An empty string is false, and a non-empty string is true.
  • Empty arrays and empty objects are false. Non-empty arrays and objects are true.
  • Other values are treated as false.