Difference between revisions of "Os.computerID"
From ComputerCraft Wiki
m (moved Os.computerID() to Os.computerID) |
(edit example, also, is it os.getComputerID() or os.computerID()? clarify?) |
||
Line 9: | Line 9: | ||
{{Example | {{Example | ||
|desc=prints the Computer ID | |desc=prints the Computer ID | ||
− | |code= | + | |code=print(os.computerID()) |
}} | }} | ||
}} | }} |
Revision as of 16:05, 24 June 2012
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
Example | |
prints the Computer ID | |
Code |
print(os.computerID()) |