Forever   

Definition:

Used in a REPEAT loop to make the loop run endlessly.

Parameter Description:


None.

Command Description:

Replace the UNTIL command in a REPEAT ... UNTIL loop to make the loop run forever. Remember, the program execution will continue indefinately until either you break out of it programmatically! This is often known as 'the infinate loop'. Once more for the cheap seats: "Make sure you provide a means for breaking out of the loop". Use EXIT (to leave the loop) or END to quit the program.

Example:

; FOREVER Example

Repeat
If KeyHit(1) Then Exit
Print "You are trapped in an infinate loop! Press ESC!"
Forever

Print "The infinate loop has ended!"

Index