Difference between revisions of "Disk.getLabel"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.getLabel |args=string side |api=disk |returns=bool disk label |addon=ComputerCraft |examples= {{Example |desc=Checks ...") |
Scarfacial (Talk | contribs) (Note to self: Stop editing the wiki when you start getting tired.) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.getLabel | |name=disk.getLabel | ||
− | |args=[[string]] side | + | |args=[[string (type)}string]] side |
|api=disk | |api=disk | ||
− | |returns=[[string (type)| | + | |returns=[[string (type)|string]] disk label |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Revision as of 12:10, 26 February 2012
Function disk.getLabel | |
No description provided. | |
Syntax | disk.getLabel([[string (type)}string]] side) |
Returns | string disk label |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Checks for data saved on the disk in the bottom drive | |
Code |
print(disk.getLabel("bottom")) |
Output | Floppy --Output changes according to the disk label |