Difference between revisions of "Modem.isOpen"
From ComputerCraft Wiki
(Changing int to number) |
Iownall555 (Talk | contribs) m (Adjusted the args data type) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|name=modem.isOpen | |name=modem.isOpen | ||
− | |args={{type| | + | |args={{type|int}} channel |
|api=Modem | |api=Modem | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 05:46, 7 August 2013
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
Example | |
Checks whether the computer is listening on this channel. | |
Code |
modem.isOpen(1) |