Difference between revisions of "Os.computerID"

From ComputerCraft Wiki
Jump to: navigation, search
(No difference)

Revision as of 07:39, 30 May 2012


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
term.write(os.computerID())