In the example below, the variable task plays a sound file. The toString function checks to see if task contains a sound object and if it does it will show the Image object named soundImage
task = PlaySound("E:\\Bleep.WAV")
showImage = task.toString()
if (showImage == "[Sound]")
{
soundImage.Show()
}