disk.isPresent

From ComputerCraft Wiki
Revision as of 11:46, 26 February 2012 by Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.isPresent |args=string side |api=disk |returns=bool something is in the disk drive |addon=ComputerCraft |examples= {{Ex...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function disk.isPresent
No description provided.
Syntax disk.isPresent(string side)
Returns bool something is in the disk drive
Part of ComputerCraft
API disk

Examples

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