when($feature.LifecycleStatus == "ACTIVE" , $feature.LifecycleStatus == "PROPOSED")
return ($feature.LifecycleStatus == "ACTIVE")
I have five symbol classes for an addresses layer, "ACTIVE" , "INACTIVE" , "PROPOSED" , "RETIRED" , "UNKNOWN". The issue is at the moments certain address points have duplicates with varying attribute information. Since this is the case I would like to be able to write an ARCADE script to where if an address point has duplicates as Definition Query will return "ACTIVE" above all else and if not "ACTIVE" return the appropriate symbol.
I started with the above script, it returns an error message of "Wrong number of arguments" or when I replace the WHEN function with IF the error message reads " Close parentheses expected".
Just curious to what would be the best way to approach ranking symbology using ARCADE in a Definition Query.
Edit/Update: I can get it to return a functional output with the updated script provided below, now is the question of getting the symbology to output the symbology as seen in the following snip. The bottom snip is what I am currently dealing with.
![](https://community.esri.com/legacyfs/online/485825_Capture11.PNG)
when($feature.LifecycleStatus == "ACTIVE", 'ACTIVE' && $feature.LifecycleStatus == "PROPOSED", 'PROPOSED')
return ($feature.LifecycleStatus == "ACTIVE")
when($feature.LifecycleStatus == "INACTIVE", "INACTIVE", $feature.LifecycleStatus == "RETIRED", "RETIRED")
![](https://community.esri.com/legacyfs/online/485815_Capture1.PNG)