EXACT

EXACT returns true or false depending on whether the two arguments provided are identical.

Functional category: Logical

Syntax

EXACT(arg1, arg2)

Arguments

Description

arg1

A string.

arg2

Another string.

Example

Let's say we receive the following vendor information.

{
"data": {
"vendor": {
"vendor_1": {
"distributor": "Jiffylube",
"price": 2500
},
"vendor_2": {
"distributor": "Exxon",
"price": 1500
},
"vendor_3": {
"distributor": "Jiffylube",
"price": 2000
}
}
}
}

If we want to determine whether two vendor distributors were the same, we could examine whether the distributor keys are identical using the following function.

# Determine if two keys in an object are identical
EXACT(data.vendor.vendor_1.distributor, data.vendor.vendor_2.distributor)
‚Äč
# Returns false