Hi,
I want to write an attribute rule to add a value to the attribute field if the feature is intersecting with other layer. Both are polygon layers and I had written an arcade expression but it is not returning any result as expected. Below is the expression
var intersectingFeatures = Intersects($feature, FeatureSetByName($datastore, "SurveyPlot2"));
if (Count(intersectingFeatures) > 0) {
$feature["rule"] == "1";
} else {
$feature["rule"] == "0";
}
return $feature;
Can anyone help me debug the issue