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 }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.