Difference between revisions of "Os.getComputerID"
From ComputerCraft Wiki
(Redirected page to Os.computerID) |
|||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
+ | {{Function | ||
+ | |name=os.getComputerID | ||
+ | |returns=the ID of the Computer | ||
+ | |api=os | ||
+ | |addon=ComputerCraft | ||
+ | |desc=returns the ID of the computer this command is executed on. | ||
+ | |examples= | ||
+ | {{Example | ||
+ | |desc=prints the Computer ID | ||
+ | |code=print(os.getComputerID()) | ||
+ | }} | ||
+ | }} |
Revision as of 09:18, 27 November 2012
Function os.getComputerID | |
returns the ID of the computer this command is executed on. | |
Syntax | os.getComputerID() |
Returns | the ID of the Computer |
Part of | ComputerCraft |
API | os |
Examples
Example | |
prints the Computer ID | |
Code |
print(os.getComputerID()) |