disk.isPresent
From ComputerCraft Wiki
Revision as of 13:43, 30 November 2012 by AfterLifeLochie (Talk | contribs) (Corrected mapping from "Boolean" to "Boolean (type)")
Function disk.isPresent | |
No description provided. | |
Syntax | disk.isPresent(string side) |
Returns | boolean something is in the disk drive |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Checks whether a disk is in the bottom disk drive or not | |
Code |
print(disk.isPresent("bottom")) |
Output | true if there is a disk, otherwise false |