Hello, I am trying to write a rule that will prevent the deletion of features in an fc. I'm getting the error 'Invalid expression. Close parenthesis expected' but I don't know why. Here is what I have so far.
var currentAssetId = $feature.cab_id
var fsMyClass = FeatureSetByName($datastore, "Proposed_OLT_LCP_Boundaries_copy")
var fsResult = filter(fsMyClass, "cab_id = @currentAssetId")
if (first(fsResult) IN $originalfeature.cab_id)
return true;
else
return false;
I believe the problem is in the if statement but I don't know what would be wrong here.