Filter array by multiple keys
Posted: Sun Jul 04, 2021 4:09 am
Hi all,
I know this works:
However i don't know if it's possible to filter by several keys?
When trying to filter an array checking a value in 2 different keys, this does not work:
Is it possible to do this? if so, what is the correct syntax?
Many thanks
Stam
I know this works:
Code: Select all
filter elements of tArray where each["key"] is "xyz"
When trying to filter an array checking a value in 2 different keys, this does not work:
Code: Select all
filter elements of tArray where each["key1"] = "xyz" or each["key2"] = "xyz"
Many thanks
Stam