disk.hasData
From ComputerCraft Wiki
Revision as of 11:49, 26 February 2012 by 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 |...")
Function disk.hasData | |
No description provided. | |
Syntax | disk.hasData(string side) |
Returns | bool whether the disk has data |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
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 |