Posted 29 June 2012 - 05:30 PM
I'm trying to build a long monitor that changes the display based on which of the three levers connected are turned on
The only way I can imagine to do this is by hardcoding the 9 possible combinations of the levers to say
Online Offline Offline
Online Online Offline
etc…
but I can't figure out how to use conditional statements to detect more than one input at once.
this is how I'm failing horribly right now
I'm new to whole coding scheme and I feel like this is probably a really inefficient way to go about everything but I don't enough to do it any other way.
The only way I can imagine to do this is by hardcoding the 9 possible combinations of the levers to say
Online Offline Offline
Online Online Offline
etc…
but I can't figure out how to use conditional statements to detect more than one input at once.
this is how I'm failing horribly right now
if (rs.testBundledInput("left", colors.white) (rs.testBundledInput("left", colors.orange) then
print("online online offline")
elseif (rs.testBundledInput("left", colors.white) then
print("online offline offline")
end
I'm new to whole coding scheme and I feel like this is probably a really inefficient way to go about everything but I don't enough to do it any other way.