os.getComputerLabel
From ComputerCraft Wiki
Function os.getComputerLabel | |
Reads the label from the executing computer. This is the label that shows up in the item tooltip if the computer is broken. The label can be set with os.setComputerLabel. This function is also available as os.computerLabel. | |
Syntax | os.getComputerLabel() |
Returns | string the label of the Computer or nil if there is no label set |
Part of | ComputerCraft |
API | OS |
Examples
Example | |
prints the Computer Label | |
Code |
print(os.getComputerLabel()) |
Output | The computer's label or nothing if there is no label set |