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

Help With Variables In A Function

Started by dylanrhodes0, 25 July 2013 - 03:14 AM
dylanrhodes0 #1
Posted 25 July 2013 - 05:14 AM
Hello, a while ago I made a toggle program. (See below) and my hope is, that instead of having a function for each item, have one function and pass the params it needs.
Function for each one(works): http://pastebin.com/F6fPS3en
One function(test): http://pastebin.com/n2heYPau

Now in the testing one, it toggles the output, but does not change the status variable(hls, sls, ds, etc)
Lyqyd #2
Posted 25 July 2013 - 12:43 PM
Split into new topic.
dylanrhodes0 #3
Posted 26 July 2013 - 04:30 PM
Used a different method, sorry. http://pastebin.com/j5Z4iMqi