os.getComputerID

From ComputerCraft
Jump to: navigation, 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.

ExampleExampleGet 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.