Hello, I am trying to create an attribute rule to input the number 100 in a column for every new point added in to the map when it intersects a polyline, here is the code below, but I have only gotten it to put in the number 0 when it is tested, have any solutions?
var fibercable = FeaturesetByName($datastore, "attributeruletest.sde.fibercable");
var midspan = intersects($feature, fibercable);
if(midspan == true)
{
return $feature.loop_length == 100;
} else {
return false;
}
Solved! Go to Solution.
return $feature.loop_length == 100; evaluates to 0, it is a boolean operation. Just return 100
return $feature.loop_length == 100; evaluates to 0, it is a boolean operation. Just return 100