- 2 minutes to read

Formula - notequal

Easily check if values are not equal using the Nodinite notequal Formula plugin. This page shows you how to compare message content, context values, or results from other formulas, ensuring your integrations are accurate and reliable.

✅ Instantly validate if values are different for data consistency
✅ Use simple expressions for message content or context
✅ See clear, real-world examples with input, formula, and result


What does the notequal Formula do?

The notequal('Expression', Content) Formula function checks whether two text values are not equal. It returns true if the values are different. Use this function to validate data, filter results, or trigger actions based on value differences.


Example 1: Check if Message Body is Not Equal to Value

Input from Body

UTC

Formula Expression

notequal('GMT', body)

Result

true

notequal_simpleParameter
Example: Checking if message body is not equal to a value


Example 2: Check if Context Value is Not Equal to Value

Suppose you have a message context value with the key id containing UTC.

Input

UTC

Formula Expression

notequal('GMT', context('id'))

Result

true

notequal_MessageContext
Example: Checking if context value is not equal to a value


Example 3: Check if Result from Another Formula is Not Equal to Value

You can use the result of another formula function as input. For example, extracting values with regex and checking if they are not equal to a specific value:

Input

GMT UTC

Formula Expression

notequal('CET', regex('GMT|UTC', body))

Result

true

notequal_nested_body
Example: Using another formula as input for notequal


Features

  • Check if two values are not equal for data validation
  • Return true if values are different
  • Works with message body, Context, or results from other Formula functions
  • Ensures data integrity across integrated systems

Important

The notequal plugin loads the entire message into RAM. Only use this function on small messages to avoid performance issues.


How to use the notequal Formula

  1. Select Formula as the expression type plugin.
  2. Enter your notequal expression in the 'Expression' text area.
  3. Provide a string-based Content parameter (e.g., message body, context value, or another formula result).

Syntax

  • Check from message body:
    notequal('Expression', body)
  • Check from message context:
    notequal('Expression', context('MessageContextKey'))
  • Check result from another formula:
    notequal('Expression', SomeOtherNestedFormulaFunction(Content))

Next Step

How to Add or manage Search Fields
How to Add or manage Log Views