disk.hasAudio

From ComputerCraft Wiki
Revision as of 12:19, 26 February 2012 by Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.hasAudio |args=string side |api=disk |returns=boolean there is audio saved on the disk |addon=ComputerCraft |examples...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function disk.hasAudio
No description provided.
Syntax disk.hasAudio(string side)
Returns boolean there is audio saved on the disk
Part of ComputerCraft
API disk

Examples

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