disk.isPresent
From ComputerCraft Wiki
| Checks whether any item at all is in the disk drive. | |
| Syntax | disk.isPresent(string side) |
| Returns | boolean something is in the disk drive |
| Part of | ComputerCraft |
| API | disk |
Examples
| Checks whether something is in the bottom disk drive or not | |
| Code |
print(disk.isPresent("bottom"))
|
| Output | true if there is an item, otherwise false |