EQUALS function

EQUALS function

Function Name Description Usage Input parameter Return value
EQUALS Compares the specified value with the existing value. EQUALS(value) Value to compare. A boolean. Returns TRUE if the specified value matches the existing value and FALSE otherwise.

Supported data type

The EQUALS function supports the following data types:

  • Boolean
  • Double
  • Integer
  • String

Example 1: Compare two strings

Sample data: $var1$ = "Apigee Integrations"

Usage: $var1$.EQUALS("Apigee Integrations")

Check if var1 equals "Apigee Integrations".

Output: TRUE

Example 2: Compare two integers

Sample data: $var1$ = 34

Usage: $var1$.EQUALS(23)

Check if var1 equals 23.

Output: FALSE

Recommendation