Posted 07 September 2012 - 10:00 PM
So im new to LUA, I know the basics of java. I was trying to make a program that, when run, would check if a redstone output was true, and if it was true set it to false, if it was false set it to true. But im not sure exactly how to check its original state, here is what i have so far.
I tried making line 2 say "redstone.Output("back", true)" but I had no sucess.
So the question is, how do i make this work?
Spoiler
- if
redstone.setOutput("back", true)
then
redstone.setOutput("back", true) == redstone.setOutput("back", false)
else
redstone.setOutput("back", false) == redstone.setOutput("back", true)
end
So the question is, how do i make this work?