So I am currently working on a lighting system. I currently have in mind
print (rs.testBundledInput("back",color.blue))
-- This will return either a True or a False (depending on if the monitor is receiving red stone input)
I want to know how I can use it to continue my code
i.e
if print = ("true") then
or
if return = ("true") then
or
if rs.testBundledInput = ("true") then
or if it is something else how do I string them together?
How to get text from above line
Started by Mettrone, Jul 16 2012 09:19 AM
4 replies to this topic
#1
Posted 16 July 2012 - 09:19 AM
#2
Posted 16 July 2012 - 09:21 AM
JUST DELETE THIS THREAD
#3
Posted 16 July 2012 - 06:23 PM
I think that the return thing will work
#4
Posted 16 July 2012 - 10:57 PM
Store the input into a variable, print it, then do whatever you want to do with it
#5
Posted 22 July 2012 - 10:14 AM
var = rs.testBundledInput("back",color.blue)
print(var)
if var == true then
-- do something
else
-- do something
end
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











