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!
Solved! Go to Solution.
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
}
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
}