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

If Statement: Bundled Color enabled or disabled?

Started by LukePlaysLK, 23 June 2017 - 05:32 PM
LukePlaysLK #1
Posted 23 June 2017 - 07:32 PM
Hello ComputerCraft Community,
I wrote a ComputerCraft Programm to check the Energy that is stored in a cell. Now I want to turn off/on the energy cell (redstone signal with bundled cables)
What if-elseif Statement do I need to query wether the color red is enabled or disabled?

Lukas
Bomb Bloke #2
Posted 24 June 2017 - 07:42 AM
if colours.test( rs.getBundledOutput( "side" ), colours.red ) then