AnsweredAssumed Answered

IF- ELSE script in the field calculator (number classification)

Question asked by malhersa on May 21, 2020
Latest reply on May 21, 2020 by malhersa
I have a field where they stored phone numbers, called "Sent Phone"
in my country the phone numbers have 8 characters
I made a field called "Length" ,to find out how many characters the field has "Sent Phone"
then I made a field called "New Phone"  to classify only numbers that have 8 characters
I need to make a script that pastes the numbers that have 8 catechists in "New Phone" and if it doesn't have 8, put 0
IDSent PhoneLengthNew Phone
1310
22220
321330
4110
533445678833445678
61120
7210
812569826812569826
912560912812560912
1034235677834235677
sorry for my bad English

Outcomes