(2012-07-09 16:47)wyrm Wrote:(2012-07-09 14:54)Hitcher Wrote: !IsEmpty(ListItem.Path,,/landscape.jpg) is never true because it's not checking if the file exists, it's just checking the label.Hitcher,
Fallback kicks in when an image isn't displayed.
again, I might have missed exactly what you are chasing, but have you just tried setting the fallback to a blank image. Then you test for a blank image with the next image control. This is what I currently use.
I use a variation of the above code for cleararts, logos, extrafanarts, etc. Only real downside is that it uses a stringcompare which can me a bit slow, but seems to work fast enough on my AppleTV.PHP Code:
<control type="image" id="37016">
<posx>17</posx>
<posy>412</posy>
<width>184</width>
<height>50</height>
<texture fallback="blank.png">$INFO[ListItem.path]logo.png</texture>
<aligny>bottom</aligny>
<aspectratio align="left">keep</aspectratio>
</control>
<control type="image" id="39016">
<posx>17</posx>
<posy>412</posy>
<width>184</width>
<height>50</height>
<texture>$INFO[ListItem.path]../logo.png</texture>
<aligny>bottom</aligny>
<aspectratio align="left">keep</aspectratio>
<visible>!StringCompare(Control.GetLabel(37016),blank.png)</visible>
</control>
Wyrm (xTV-SAF)
the stringcompare action itself isn´t slow, it´s the need to check the filesystem which makes it slow.

![[Image: sig_zps3af3b48e.jpg]](http://i620.photobucket.com/albums/tt289/Arcanthur/Celestium/sig_zps3af3b48e.jpg)
![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help