Instead of having several if statements, you can use one if, as many elseif's as you want, and only one end. This is much easier for coding.
As for the power, you can only output a maximum of six sides. If you have RedPower installed(another mod), you can use bundled cable to output up to 16 different signals on each side.
Refinery Control problem
Started by mttasch1, Sep 28 2012 09:47 PM
23 replies to this topic
#21
Posted 28 September 2012 - 11:44 PM
#22
Posted 28 September 2012 - 11:46 PM
dimitriye98, on 28 September 2012 - 11:16 PM, said:
I'm not making up the no break thing. That's what they teach you in programming class in school. GOTO, break, and continue make code difficult to read and become huge problems if you ever work in a collaborative project.
Why are you so anti-break? I've tryed it, ive never really liked it, but I wouldent run around the forums nay saying it. Your teacher may have told you that its non proper coding, but then when your learning some times the easyest way is the best. Just like protecting from from Control+T. Everyone puts pull.event = pullevent raw (not quite how its written) But no one uses pcall(), which is in my opinion, a better and more controlled alternitive.
(Im not saying pcall() is the be all end all eather)
On topic, it seams im late to the show and have nothing really to add.
#23
Posted 28 September 2012 - 11:50 PM
Well, I definitely have a better understanding of Computercraft now
/>. This was my first big project, so thank you guys for your help!
#24
Posted 28 September 2012 - 11:52 PM
Always glad to help. Feel free to ask any questions here. There are no stupid questions, unless you didn't search for the answer first.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











