os.setComputerLabel
From ComputerCraft Wiki
![]() | |
Sets the label of the computer this command is executed on to label. The label can be read with os.getComputerLabel and viewed in the item tooltip if the computer is broken. | |
Syntax | os.setComputerLabel(string label) |
Returns | nil |
Part of | ComputerCraft |
API | OS |
Examples
![]() | |
set the Computer label to "My Computer" | |
Code |
os.setComputerLabel("My Computer") |