I'm trying to set up conditional symbology by turning the contents of the highlighted row, under the column “ALL_UNITS” into an array. So the array should contain the elements: E29, E64, E82, E244, and E286. Once the array is established, the script should check the column RedUnits for matches. Therefore, the points for STANUM 29 should have the “White Yellow” symbology.


var st1102 = IIf($feature["STANUM"] == 1102, $feature["ALL_UNITS"], null);
var st1102array = Split(st1102, ",");
if (Includes(st1102array, $feature.RedUnits))
return "White Yellow";
else if ($feature.RedUnits == null && $feature.GreenUnits == null && $feature.BlueUnits != null)
return "Brown";
else if ($feature.RedUnits == null && $feature.GreenUnits != null)
return "Grey";
else if ($feature.RedUnits != null)
return "White";
else
return "Black";