This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
EXACT
Dan Gorman edited this page Nov 29, 2018
·
2 revisions
EXACT
returns true or false depending on whether the two arguments provided are identical.
EXACT(arg1, arg2)
-
arg1
is a string -
arg2
is also a string
Let's say we receive some vendor information like that shown below:
{
"data":{
"vendor":{
"vendor_1":{
"name":"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 the distributor keys for sameness:
EXACT(data.vendor.vendor_1.distributor, data.vendor.vendor_2.distributor)
This will return true
.