This is a read-only snapshot of
the ComputerCraft forums
, taken in April 2020.
ComputerCraft
→
Ask a Pro
where to use until in the terminal?
Started by con2000, 15 April 2012 - 09:59 PM
con2000
#1
28 posts
Posted 15 April 2012 - 11:59 PM
I've looked online, tutorials but they have never used until in there programs.
Cloudy
#2
2447 posts
Posted 16 April 2012 - 12:03 AM
http://www.lua.org/manual/5.1/manual.html#2.4.4
Basically:
repeat --do stuff until true
Usually, you'd have an expression instead of true - so something like:
repeat var = io.read() until var == "test"
con2000
#3
28 posts
Posted 16 April 2012 - 12:13 AM
Thanks Cloudy I will remember…Hopefully… JK :)/>/>