Difference between revisions of "Disk.hasData"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
m (Corrected mapping from "Boolean" to "Boolean (type)") |
||
Line 4: | Line 4: | ||
|args=[[string (type)|string]] side | |args=[[string (type)|string]] side | ||
|api=disk | |api=disk | ||
− | |returns=[[boolean]] whether the disk has data | + | |returns=[[boolean_(type)|boolean]] whether the disk has data |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Revision as of 13:43, 30 November 2012
Function disk.hasData | |
No description provided. | |
Syntax | disk.hasData(string side) |
Returns | boolean 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 |