disk.hasAudio
From ComputerCraft Wiki
Revision as of 19:07, 22 April 2013 by Hawk777 (Talk | contribs) (Take better description from function table on API page)
Function disk.hasAudio | |
Checks whether the current disk is a music disk, as opposed to a floppy disk or other item. | |
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 |