AnsweredAssumed Answered

Change style with Arcade Find function

Question asked by ethoms on Sep 19, 2019
Latest reply on Sep 26, 2019 by xander_bakker

First Arcade expression here and I can't figure out what I am doing wrong. Using an AGOL-hosted feature layer of geologic unit polygons, I am trying to change the style so that there are two classes; polygons of one particular unit and everything else. Eg.,

var test = $feature["UNIT"];

if (Find("Kaf", test)>-1) {
return "Kaf";
} else {
return "other";

and this is what I get:


The gray 'Other' polygons are actually 'Kaf' polygons.