Difference between revisions of "Os.getComputerID"
From ComputerCraft Wiki
(Redirected page to Os.computerID) |
MKlegoman357 (Talk | contribs) m (Fixed) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
+ | {{Function | ||
+ | |name=os.getComputerID | ||
+ | |returns={{type|number}} computerID | ||
+ | |api=OS | ||
+ | |addon=ComputerCraft | ||
+ | |desc=Returns a number which uniquely identifies the computer and which is the name of the directory in the world’s <code>computer</code> directory containing the computer’s data. This function is also available as [[os.computerID]]. | ||
+ | |examples= | ||
+ | {{Example | ||
+ | |desc=Prints the computer ID (assuming it's 5). | ||
+ | |code=[[print]]('''os.getComputerID()''') | ||
+ | |output=5 | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 18:43, 10 April 2014
Function os.getComputerID | |
Returns a number which uniquely identifies the computer and which is the name of the directory in the world’s computer directory containing the computer’s data. This function is also available as os.computerID. | |
Syntax | os.getComputerID() |
Returns | number computerID |
Part of | ComputerCraft |
API | OS |
Examples
Example | |
Prints the computer ID (assuming it's 5). | |
Code |
print(os.getComputerID()) |
Output | 5 |