Difference between revisions of "Modem.isOpen"
From ComputerCraft Wiki
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...") |
(Changing int to number) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|name=modem.isOpen | |name=modem.isOpen | ||
− | |args= | + | |args={{type|number}} channel |
|api=Modem | |api=Modem | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 13:34, 18 July 2013
Function modem.isOpen | |
Checks whether or not a certain channel is open. | |
Syntax | modem.isOpen(number channel) |
Returns | nil |
Part of | ComputerCraft |
API | Modem |
Examples
Example | |
Checks whether the computer is listening on this channel. | |
Code |
modem.isOpen(1) |