While(Ans) and getKey
(account deleted) 26 Apr 2017 17:44
Hi everyone,
I wish to create a loop that repeats when no button is pressed. I have tried
<code>
While not(Ans)
<code>
getKey
End
<code>
However, the loop here is just being skipped.
I have learned that
<code>
0→K
While not(K)
<code>
getKey→K
End
<code>
resolves the issue.
My question: Why is the loop skipped in the first code? Isn't the condition of a While( loop checked when its end is reached?
Thanks in advance