os.computerID

From ComputerCraft Wiki
Revision as of 10:01, 26 November 2012 by Kingdaro (Talk | contribs) (dunno where people got "computerID" from, it's "getComputerID")

Jump to: navigation, search


Grid Redstone.png  Function os.getComputerID
returns the ID of the computer this command is executed on.
Syntax os.getComputerID()
Returns the ID of the Computer
Part of ComputerCraft
API os

Examples

Grid paper.png  Example
prints the Computer ID
Code
print(os.getComputerID())