os.getComputerID
From ComputerCraft Wiki
(Redirected from Os.computerID)
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
| Prints the computer ID (assuming it's 5). | |
| Code |
print(os.getComputerID()) |
| Output | 5 |