os.getComputerID
From ComputerCraft Wiki
Revision as of 14:09, 30 November 2012 by AfterLifeLochie (Talk | contribs) (Updated references from "os" to "OS")
| 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
| prints the Computer ID | |
| Code |
print(os.getComputerID()) |