Difference between revisions of "Disk.hasData"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.hasData |args=string side |api=disk |returns=bool whether the disk has data |addon=ComputerCraft |examples= {{Example |...") |
Scarfacial (Talk | contribs) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.hasData | |name=disk.hasData | ||
| − | |args=[[string]] side | + | |args=[[string (type)|string]] side |
|api=disk | |api=disk | ||
| − | |returns=[[ | + | |returns=[[boolean]] whether the disk has data |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= | ||
Revision as of 12:12, 26 February 2012
| No description provided. | |
| Syntax | disk.hasData(string side) |
| Returns | boolean whether the disk has data |
| Part of | ComputerCraft |
| API | disk |
Examples
| Checks for data saved on the disk in the bottom drive | |
| Code |
print(disk.hasData("bottom"))
|
| Output | true if the disk has saved data, otherwise false |