os.setComputerLabel

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function os.setComputerLabel
Sets or resets the label of the computer to label. If called with no parameters resets the label. The label can be read with os.getComputerLabel and viewed in the item tooltip if the computer is broken.
Syntax os.setComputerLabel(string/nil label)
Returns nil
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Sets the Computer label to "My Computer".
Code
os.setComputerLabel("My Computer")
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox