Since UNTIL serves to terminate a repeat-until loop (which is started by the REPEAT keyword), it should not appear before REPEAT. Here is an example of a correct repeat-until loop:
repeat x = sqr(x) + y until x > 4
See Also Errors