Difference between revisions of "Disk.isPresent"
From ComputerCraft Wiki
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...") |
Scarfacial (Talk | contribs) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.isPresent | |name=disk.isPresent | ||
| − | |args=[[string]] side | + | |args=[[string (type)]] side |
|api=disk | |api=disk | ||
| − | |returns=[[ | + | |returns=[[boolean]] something is in the disk drive |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= | ||
Revision as of 12:11, 26 February 2012
| No description provided. | |
| Syntax | disk.isPresent(string (type) side) |
| Returns | boolean something is in the disk drive |
| Part of | ComputerCraft |
| API | disk |
Examples
| 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 |