disk.hasData
From ComputerCraft Wiki
Function disk.hasData | |
Checks whether the current disk is a floppy disk, as opposed to a music disc or other item. | |
Syntax | disk.hasData(string side) |
Returns | boolean whether the item is a floppy |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Checks for what is in the bottom drive | |
Code |
print(disk.hasData("bottom")) |
Output | true if the item is a floppy, otherwise false |