forever

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
forever
Summary

Used in a repeat loop structure to specify that the loop should repeat until halted by an exit repeat.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
repeat forever
RelatedKeyword: until, while
Glossary: keyword, conditional, statement, loop, iteration, control structure
Control Structure: exit repeat, repeat
Description

Use the forever keyword to repeat until an exit repeat statement within the loop explicitly ends the loop or until the heat death of the universe, whichever comes first.

All forms of the repeat control structure that test for a condition, test at the top of the loop (before each iteration). If you want to test at the bottom of the loop, use the forever keyword, and use a conditional exit repeat at the bottom of the loop:

repeat forever
    -- statements here
    if myCondition is true then exit repeat
end repeat