Using Classic UO, Razor v1.9.77.0
I wrote a script of this matter (expected infinite loop):
while (1 == 1)
skill 'hiding'
wait 11000
endwhile
While I expected while loop to run indefinitely, I was surprised to see every time I ran it "script finished in 30ms".
I've negated the condition while (1 != 1) and now script runs in the loop properly.
I'm pretty sure it's a bug since the manual says "while: run loop as long as the expression remains true"