Difference between revisions of "Os.getComputerID"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
m (Updated references from "os" to "OS") |
||
Line 3: | Line 3: | ||
|name=os.getComputerID | |name=os.getComputerID | ||
|returns=the ID of the Computer | |returns=the ID of the Computer | ||
− | |api= | + | |api=OS |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=returns the ID of the computer this command is executed on. | |desc=returns the ID of the computer this command is executed on. |
Revision as of 14:09, 30 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()) |