rednet.isOpen
From ComputerCraft Wiki
Revision as of 17:10, 4 December 2012 by AfterLifeLochie (Talk | contribs) (Reverted edits by 199.19.105.156 (talk) to last revision by AfterLifeLochie)
| Checks to see if the side has rednet opened. | |
| Syntax | rednet.isOpen(string side) |
| Returns | boolean isOpen, if the side has rednet opened it returns true, else false. |
| Part of | ComputerCraft |
| API | rednet |
Examples
| 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
|