Does not matter what I try I just can't figure this one out, please have pity on me.
I want to test when there is a subtitle or audio language and just get simple True or False.
When no subtitles or language exist my code just fails and does not execute my failed block, i want to do something when there is none.
I can't seem to successfully test for this. it does not seem to be null the var just seems to not exist or what ever @#$%#.
I have tried so many things and variables that I would be happy with something as simple as the below to just understand what to do.
Code: Select all
{answer = (audio.languages!=null && audio.languages.size() >0 ) ? 'Found' : 'Not found'}
Code: Select all
{answer = (text.languages!=null && text.languages.size() >0 ) ? 'Found' : 'Not found'}