Is it possible to calculate the number of characters in a field? I've tried using Count() but the expression doesn't work.
var lengthArray= [$feature.id]
if (count(lengthArray)!=10)
{
return false;
}
else return true;
Thanks in advance!
Why are you creating a list/array? the count is always going to be 1.
var length = Count(Text($feature.id)) if (length != 10) { return false } else { return true }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.