Programming-Idioms

History of Idiom 78 > diff from v53 to v54

Edit summary for version 54 :
[Lua] until is the opposite of while

Version 53

2016-10-11, 17:29:29

Version 54

2017-04-23, 10:15:27

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Extra Keywords
until
Extra Keywords
until
Code
repeat
	someThing()
	someOtherThing()
until c
Code
repeat
	someThing()
	someOtherThing()
until !c
Comments bubble
The block code is not repeated in the source.
Comments bubble
The block code is not repeated in the source.
Demo URL
http://codepad.org/ODarWfIW
Demo URL
http://codepad.org/ODarWfIW