Difference between revisions of "Disk.hasData"
From ComputerCraft Wiki
(Undo revision 1752 by 89.0.43.246 (talk)) |
m (Moved to CAT:APIFunctions) |
||
| Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Revision as of 18:33, 28 November 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 |