Difference between revisions of "Rednet.isOpen"

From ComputerCraft Wiki
Jump to: navigation, search
m (Formatted code according to the Documentation_Standard)
(rfjukmgh)
Line 1: Line 1:
{{lowercase}}
+
terhjdfkhgnvjk
{{Function
+
|name=rednet.isOpen
+
|args=[[string]] side
+
|returns=[[boolean_(type)|boolean]] isOpen, if the side has rednet opened it returns true, else false.
+
|api=rednet
+
|addon=ComputerCraft
+
|desc=Checks to see if the side has rednet opened.
+
|examples=
+
{{Example
+
|desc=Checks if any side is opened, if so then tell the user.
+
|code=for n,m in ipairs(rs.getSides()) do
+
    if rednet.isOpen(m) then
+
      print(m.." is open!")
+
    else
+
      print(m.." isn't open!")
+
    end
+
  end
+
}}
+
}}
+
 
+
[[Category:API_Functions]]
+

Revision as of 17:10, 4 December 2012

terhjdfkhgnvjk