Difference between revisions of "Modem.isOpen"

From ComputerCraft Wiki
Jump to: navigation, search
m (Adjusted the args data type)
m (Added " |returns={{type|bool}} isOpen " line.)
Line 2: Line 2:
 
|name=modem.isOpen
 
|name=modem.isOpen
 
|args={{type|int}} channel
 
|args={{type|int}} channel
 +
|returns={{type|bool}} isOpen
 
|api=Modem
 
|api=Modem
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Revision as of 11:22, 5 January 2014

Grid Redstone.png  Function modem.isOpen
Checks whether or not a certain channel is open.
Syntax modem.isOpen(int channel)
Returns bool isOpen
Part of ComputerCraft
API Modem

Examples

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