os.computerID

From ComputerCraft Wiki
Revision as of 16:05, 24 June 2012 by Thesbros (Talk | contribs) (edit example, also, is it os.getComputerID() or os.computerID()? clarify?)

Jump to: navigation, search


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

Examples

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