disk.isPresent
From ComputerCraft Wiki
Function disk.isPresent | |
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
Example | |
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 |