os.getComputerLabel
From ComputerCraft Wiki
Revision as of 03:33, 3 June 2014 by MKlegoman357 (Talk | contribs)
![]() | |
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
![]() | |
prints the Computer Label | |
Code |
print(os.getComputerLabel()) |
Output | The computer's label or nothing if there is no label set |