2015-03-02, 13:46
(2015-03-01, 20:09)pkscout Wrote:(2015-02-26, 14:21)manfeed Wrote: Ok. Thank you, now I understand. My issue is that I'm coding a Music Visualization screen; my aim is to provide similar artists and discography information and their corresponding images while the song is playing. With similar artists there's no problem; would there be any way to get discography work in the same way? I mean, that AlbumName.1 and AlbumThumb.1 (and so on) only returned results if both had any content...
If AS doesn't get anything back for a particular album thumb or name, then that property will be blank. If you don't want to show the album name if the thumb doesn't exist, just check with IsEmpty.
Code:<visible>!IsEmpty(Window(Visualisation).Property(ArtistSlideshow.%d.AlbumThumb))</visible>
Or if you only want to show it if you have both:
Code:<visible>!IsEmpty(Window(Visualisation).Property(ArtistSlideshow.%d.AlbumThumb)) + !IsEmpty(Window(Visualisation).Property(ArtistSlideshow.%d.AlbumName))</visible>
Ok, thank you, I will take it into account.
Still I wonder of what use is to fetch a result like valid when there's no image available, only the album name; at the end of the day the name's script is Slide Show, and if there's no image maybe it would make sense to skip that result altogether. Obviously it's just an opinion, you know better... maybe it's impossible to make that change in the code.
Thank you.