disk.isPresent
From ComputerCraft Wiki
Revision as of 18:26, 21 April 2013 by Hawk777 (Talk | contribs) (Add description and fix to talk about any item, not just a disk)
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 |