Modem.isOpen

From ComputerCraft Wiki
Revision as of 16:47, 8 June 2013 by Chainmanner (Talk | contribs) (Created page with "{{Function |name=modem.isOpen |args=int channel |api=Modem |addon=ComputerCraft |desc=Checks whether or not a certain channel is open. |examples= {{Example |de...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Grid Redstone.png  Function modem.isOpen
Checks whether or not a certain channel is open.
Syntax modem.isOpen(int channel)
Returns nil
Part of ComputerCraft
API Modem

Examples

Grid paper.png  Example
Checks whether the computer is listening on this channel.
Code
modem.isOpen(1)