ENDWHILE expected after WHILE

Since ENDWHILE serves to terminate a while loop (which is started by the WHILE keyword), it should appear after the while loop. Example:

while x > 3
  x = sqr(x) + y

Add the ENDWHILE keyword to the end of the while loop to correct the error:

while x > 3
  x = sqr(x) + y
endwhile

See Also
Errors