Difference between revisions of "Os.setComputerLabel"
From ComputerCraft Wiki
m (Updated references from "os" to "OS") |
(Add return type and more notes) |
||
Line 3: | Line 3: | ||
|name=os.setComputerLabel | |name=os.setComputerLabel | ||
|args=[[string (type)|string]] label | |args=[[string (type)|string]] label | ||
− | |returns= | + | |returns=[[nil]] |
|api=OS | |api=OS | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc= | + | |desc=Sets the label of the computer this command is executed on to <var>label</var>. The label can be read with [[os.getComputerLabel]] and viewed in the item tooltip if the computer is broken. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 20:04, 21 April 2013
Function os.setComputerLabel | |
Sets the label of the computer this command is executed on to label. The label can be read with os.getComputerLabel and viewed in the item tooltip if the computer is broken. | |
Syntax | os.setComputerLabel(string label) |
Returns | nil |
Part of | ComputerCraft |
API | OS |
Examples
Example | |
set the Computer label to "My Computer" | |
Code |
os.setComputerLabel("My Computer") |