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.