This first edition was written for Lua 5.0. While still largely relevant for later versions, there are some differences.
The fourth edition targets Lua 5.3 and is available at Amazon and other bookstores.
By buying the book, you also help to support the Lua project.
|Programming in Lua|
|Part I. The Language Chapter 4. Statements|
As the name implies, a repeat-until statement repeats its body until its condition is true. The test is done after the body, so the body is always executed at least once.
-- print the first non-empty line repeat line = os.read() until line ~= "" print(line)
|Copyright © 2003–2004 Roberto Ierusalimschy. All rights reserved.|