Boolean being something being on and off compared to the active status on the button
is there any way i can check and change the current active on a button to match up with the comparative.
BUTTON API
local r = peripheral.wrap("right) -- this is the reactor im talking about
function ReactorSwitch1() -- On/Off Switch
if r.getActive() then
r.setActive(false)
print("Reactor Deactivated")
else
button.toggleButton("SWITCH")
print("Reactor Activated")
r.setActive(true)
end
I should point out I already notice that i didnt add a switch in the first part of the if statement , but the point was to try and sync them up so its not possible at that point. unless I make a seperate if to try and bounce it back .












