Difference between revisions of "Disk.hasAudio"
From ComputerCraft Wiki
m (Corrected mapping from "Boolean" to "Boolean (type)") |
(Add description) |
||
Line 4: | Line 4: | ||
|args=[[string (type)|string]] side | |args=[[string (type)|string]] side | ||
|api=disk | |api=disk | ||
− | |returns=[[boolean_(type)|boolean]] | + | |returns=[[boolean_(type)|boolean]] whether there is audio saved on the disk |
|addon=ComputerCraft | |addon=ComputerCraft | ||
+ | |desc=Checks whether the item in the drive is a music record. | ||
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 18:38, 21 April 2013
Function disk.hasAudio | |
Checks whether the item in the drive is a music record. | |
Syntax | disk.hasAudio(string side) |
Returns | boolean whether there is audio saved on the disk |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Checks for audio saved on the disk in the bottom drive | |
Code |
print(disk.hasAudio("bottom")) |
Output | true if there is audio, otherwise false |