computer.isOn

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

computer.isOn
Function
Syntax
computer.isOn()
Returns boolean isOn
API computer
Source CC:Tweaked (source)

Returns if a computer peripheral is running.

ExampleExampleChecks if a Computer is running
Checks if a Computer is running and print it.
Code
local computer = peripheral.find("computer")
print(computer.isOn())
Output
true