computer.isOn
computer.isOn Function | |
---|---|
Syntax computer.isOn() | |
Returns | boolean isOn |
API | computer |
Source | CC:Tweaked (source) |
Returns if a computer peripheral is running.
|
|||
Checks if a Computer is running and print it. | |||
Code | <nowiki>
local computer = peripheral.find("computer")
print(computer.isOn())
</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.