Difference between revisions of "Os.setComputerLabel"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=os.setComputerLabel |returns=Unknown |api=os |addon=ComputerCraft |desc=set the label of the computer this command is executed on. |examples= {{...") |
|||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=os.setComputerLabel | |name=os.setComputerLabel | ||
| + | |args=[[string (type)|string]] label | ||
|returns=Unknown | |returns=Unknown | ||
|api=os | |api=os | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc= | + | |desc=Set the label of the computer this command is executed on to <var>label</var>. |
|examples= | |examples= | ||
{{Example | {{Example | ||
Revision as of 07:41, 30 May 2012
| Set the label of the computer this command is executed on to label. | |
| Syntax | os.setComputerLabel(string label) |
| Returns | Unknown |
| Part of | ComputerCraft |
| API | os |
Examples
| set the Computer label to "My Computer" | |
| Code |
os.setComputerLabel("My Computer")
|