This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lieudusty's profile picture

Ending a program without return or break?

Started by lieudusty, 31 August 2012 - 03:23 AM
lieudusty #1
Posted 31 August 2012 - 05:23 AM
Hi everyone! =D

I'm wondering is there another way to break a program without using return or break? Thanks!
Luanub #2
Posted 31 August 2012 - 05:37 AM
You can abort it using the error() function.
KaoS #3
Posted 31 August 2012 - 08:16 AM
os.shutdown() :)/>/>
lieudusty #4
Posted 31 August 2012 - 11:33 PM
Haha os.shutdown() works xD Thanks for the answers guys!