Difference between revisions of "Disk.isPresent"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
m (Corrected mapping from "Boolean" to "Boolean (type)")
Line 4: Line 4:
 
|args=[[string (type)|string]] side
 
|args=[[string (type)|string]] side
 
|api=disk
 
|api=disk
|returns=[[boolean]] something is in the disk drive
+
|returns=[[boolean_(type)|boolean]] something is in the disk drive
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|examples=
 
|examples=

Revision as of 13:43, 30 November 2012


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

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