IsValidSound: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|sound| | {{FuncParam|sound|The sound identifier}} | ||
{{FuncReturnValue|Returns '''true''' if the sound is valid, otherwise '''false'''.}} | {{FuncReturnValue|Returns '''true''' if the sound is valid, otherwise '''false'''.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
if IsValidSound(soundId) then | |||
DeleteSound(soundId) | |||
end | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{SoundFunctions}} |
Latest revision as of 09:23, 14 December 2019
Description
Checks whether the sound is valid or not.
Syntax
IsValidSound(sound)
Parameters
- sound
The sound identifier
Return Value
- Returns true if the sound is valid, otherwise false.
Example
if IsValidSound(soundId) then
DeleteSound(soundId)
end