AnsweredAssumed Answered

Arcade syntax question: checking if value is in a list

Question asked by kclark_Angler Champion on Aug 17, 2020
Latest reply on Aug 17, 2020 by kclark_Angler



I am hoping this is a fairly simple question but I'm just a bit unclear on the syntax for Arcade and haven't been able to find the answer I need.


I want to return a certain value based on whether the county name is in a predefined list or not.


Something like this:


var counties = ['County1', 'County2']
if ( $feature.NAME IN counties ) {
return "Processed"
else {
return "Not Processed"


Thanks in advance for any guidance!