Jump to content




How to get text from above line


4 replies to this topic

#1 Mettrone

  • New Members
  • 2 posts

Posted 16 July 2012 - 09: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?

#2 Mettrone

  • New Members
  • 2 posts

Posted 16 July 2012 - 09:21 AM

JUST DELETE THIS THREAD

#3 Teraminer

  • New Members
  • 175 posts
  • LocationDon't look behind you..

Posted 16 July 2012 - 06:23 PM

I think that the return thing will work

#4 Dirkus7

  • Members
  • 148 posts
  • Locationthe Netherlands

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 zwap1233

  • Members
  • 37 posts

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