# How to Output 'Unknown' if id3.songname is missing?

**URL:** <https://forum.kirupa.com/t/how-to-output-unknown-if-id3-songname-is-missing/228573>\
**Category:** flash\
**Created:** [June 9, 2007, 2:15am UTC](https://forum.kirupa.com/t/how-to-output-unknown-if-id3-songname-is-missing/228573 "2007-06-09T02:15:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indecisive](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@Indecisive](https://forum.kirupa.com/u/Indecisive)\
**Post date:** [June 9, 2007, 2:15am UTC](https://forum.kirupa.com/t/how-to-output-unknown-if-id3-songname-is-missing/228573/1 "2007-06-09T02:15:05Z")

</div>

I tried to be as descriptive with the title as I could be,

Right now, I have my player setup to read the id3.songname and output into a dynamic textfield but how can I output a default message if an mp3 file is missing that info? Is there some type of if () statement I could use?

My code as is:

```auto
  
my_snd.onID3 = function(){
    for( var prop in my_snd.id3 ){
 info.track.text = my_snd.id3.songname;
    }
}

```

Thanks for any help at all on this one!

-Ind
