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

Iterartion

Started by GenesisOfTheVoid, 03 February 2015 - 12:07 PM
GenesisOfTheVoid #1
Posted 03 February 2015 - 01:07 PM
Is there a way for the computer to display iteration and when a it fails to run. What I mean is that when you run a program multiple times:
CraftOS 1.x
> exampleProg 30
Is there a way to display something like this:
CraftOs 1.x
> exampleProg 30
>iteration 1
>iteration 2
>iteration 3
>iteration 4 failed
I know this isn't the most clear explaination, so sorry for that! Thanks in advance for the help!
Bomb Bloke #2
Posted 03 February 2015 - 01:17 PM
Stick a print statement within your loop?
GenesisOfTheVoid #3
Posted 04 February 2015 - 07:31 AM
Stick a print statement within your loop?
It didn't work
Bomb Bloke #4
Posted 04 February 2015 - 11:12 AM
I'd probably have a lot more to say about that if you 1) revealed the code in concern and 2) explained what happened instead.