Logo

Programming-Idioms

History of Idiom 78 > diff from v64 to v65

Edit summary for version 65 by sproxa:
[Lua] it's easier to have false

Version 64

2019-02-01, 06:38:34

Version 65

2019-09-03, 15:34:26

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 not c
Code
repeat
	someThing()
	someOtherThing()
until false
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