modem.isWireless
| modem.isWireless Function  | |
|---|---|
| 
Syntax modem.isWireless()  | |
| Returns | boolean isWireless | 
| API | modem | 
| Source | CC:Tweaked (source) | 
Returns whether the modem is wireless.
  | 
  |||
| Checks whether a modem is a wireless modem. | |||
| Code | <nowiki>
local modem = peripheral.find("modem")
print(modem.isWireless())
    </nowiki>
 | 
    ||
| Output | true
 | 
    ||
Functions  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua | 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked | 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.