Difference between revisions of "Disk.eject"

From ComputerCraft Wiki
Jump to: navigation, search
m (Use type template)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=disk.eject
 
|name=disk.eject
|args=[[string (type)|string]] side
+
|args={{Type|string}} side
 
|api=disk
 
|api=disk
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 +
|desc=Ejects any item currently in the drive, spilling it into the world as a loose item.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
Line 11: Line 12:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:API_Functions]]

Latest revision as of 19:12, 22 April 2013


Grid Redstone.png  Function disk.eject
Ejects any item currently in the drive, spilling it into the world as a loose item.
Syntax disk.eject(string side)
Returns nil
Part of ComputerCraft
API disk

Examples

Grid paper.png  Example
Ejects the disk in the bottom drive
Code
disk.eject("bottom")