Difference between revisions of "Os.computerID"

From ComputerCraft Wiki
Jump to: navigation, search
(Created the Page)
 
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=os.computerID()
 
|name=os.computerID()
|args=none
 
 
|returns=the ID of the Computer
 
|returns=the ID of the Computer
 
|api=os
 
|api=os

Revision as of 16:33, 24 March 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())