os.getComputerLabel

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  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

Grid paper.png  Example
prints the Computer Label
Code
print(os.getComputerLabel())
Output The computer's label or nothing if there is no label set
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox