disk.isPresent

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  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

Grid paper.png  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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox