I don’t know how your not getting an error. You are checking if the length of the array (a number) at index length of array is 1, essentially you are looking for a number in a number.
I meant, what is this piece of code trying to do, bc It’s very confusing for me to read bc of all the brackets and there’s a for loop in a repeat until loop. Also, sorry for late replies lol