The indexing array input is a bad idea with your while loop 🙂
AND unless you exactly now all values of the DBL it's also a bad idea to compare two DBLs with an EQUAL ... better use a >= or <= or for this case the IN RANGE
Greetings from Germany
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'