Hi,
how can I make this work? I´ve tried IN, CONTAIN, EQUALS, and so many other things in xano but I can´t seem to make this work:
I have an array of objects like this:
[
{"productID":1,"price":10,"quantity":1,"configurationID":"001"},
{"productID":1,"price":10,"quantity":10,"configurationID":"001"},
{"productID":2,"price":20,"quantity":2,"configurationID":"002"}
]
What I now want to do is to check if all objects in the array below match the one above)
Example 1: Should be a match/return TRUE because both array include 3 objects and the productIDs and configurationIDs are also matching.
[
{"productID":1,"configurationID":"001"},
{"productID":1,"configurationID":"001"},
{"productID":2,"configurationID":"002"}
]
Example 2: Should be no match/return FALSE even though the two of the productIDs and configurationIDs are matching but there are only 2 objects in the array below.
[
{"productID":1,"configurationID":"001"},
{"productID":1,"configurationID":"001"}
]
Example 3: Should be no match/return FALSE because the values are not matching
[
{"productID":4,"configurationID":"004"},
{"productID":1,"configurationID":"001"},
{"productID":2,"configurationID":"002"}
]
How do I approach this? I already spent the whole day looking for a solution but nothing works. Or is it because the second array doesn´t have "quantity" fields?