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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.