2007-08-22, 07:28
I'm trying to format a label with square brackets only if a listitem has info.
<label>$INFO,ListItem.Label2, (wiki)</label>
e.g. [PG] if ListItem.Label2=PG
could someone show me the correct way. The above only displays the right ] no matter what and I don't want the brackets if ListItem is blank.
A link in the manual that explains it would also help. I must be searching the wrong term.
Thanks
Edit: http://www.xboxmediacenter.com/wiki/inde...el_Parsing
With this <label>$INFO[ListItem.Label2,[,]]</label>
When it's blank I get the right bracket. Otherwise it works good.
<label>$INFO,ListItem.Label2, (wiki)</label>
e.g. [PG] if ListItem.Label2=PG
could someone show me the correct way. The above only displays the right ] no matter what and I don't want the brackets if ListItem is blank.
A link in the manual that explains it would also help. I must be searching the wrong term.
Thanks
Edit: http://www.xboxmediacenter.com/wiki/inde...el_Parsing
With this <label>$INFO[ListItem.Label2,[,]]</label>
When it's blank I get the right bracket. Otherwise it works good.