os.getComputerID

From ComputerCraft
(Redirected from Os.computerID)
Jump to navigation Jump to search

os.getComputerID
Function
Syntax
os.getComputerID()
Returns number id
API os
Source CC:Tweaked (source)

Returns a number representing the unique ID of the Computer.

Error creating thumbnail: Unable to save thumbnail to destination
ExampleGet the Computer ID
Retrieves and prints the Computer's ID.
Code
print(os.getComputerID())
Output
Varies depending on the computer.  If it is the first computer placed in the world, it will display 0.