Arcade Logical Function using IN condition

601
2
Jump to solution
07-15-2021 07:17 AM
Labels (2)
BenjaminBlackshear
New Contributor III

Does Arcade support using IN conditions like SQL?

I get a syntax error in when I try to do so, here is an example:

var taxa = IIF(value IN ('species1', 'species2'), 'mammal', 'reptile')

Or is there another way to go about this? The species list I want to check if the value is in or not has 23 entries so I'd prefer not to write individual conditional statements for each of them.

0 Kudos
1 Solution
2 Replies
BenjaminBlackshear
New Contributor III

that did the trick, thanks!

0 Kudos