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

How to get text from above line

Started by Mettrone, 16 July 2012 - 08:19 AM
Mettrone #1
Posted 16 July 2012 - 10:19 AM
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?
Mettrone #2
Posted 16 July 2012 - 10:21 AM
JUST DELETE THIS THREAD
Teraminer #3
Posted 16 July 2012 - 07:23 PM
I think that the return thing will work
Dirkus7 #4
Posted 16 July 2012 - 11:57 PM
Store the input into a variable, print it, then do whatever you want to do with it
zwap1233 #5
Posted 22 July 2012 - 11:14 AM

var = rs.testBundledInput("back",color.blue)
print(var)
if var == true then
-- do something
else
-- do something
end