os.computerID

From ComputerCraft Wiki
Revision as of 16:32, 24 March 2012 by AyrA (Talk | contribs) (Created the Page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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

Examples

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