os.getComputerLabel
From ComputerCraft Wiki
Revision as of 20:02, 21 April 2013 by Hawk777 (Talk | contribs) (Add return type, example output, and more notes)
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 |
Part of | ComputerCraft |
API | OS |
Examples
Example | |
prints the Computer Label | |
Code |
print(os.getComputerLabel()) |
Output | My Computer |