Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: madsic on May 29, 2009, 08:28:27 AM

Title: [solved] Alternating inside conditionals breaks WPS
Post by: madsic on May 29, 2009, 08:28:27 AM
The following breaks my WPS:
Code: [Select]
%?It<%t3next up is... ;%t9"%It">whereas the alternating and the conditional by themselves work fine:
Code: [Select]
%t3next up is... ;%t9"%It"
Code: [Select]
%?It<"%It">Is this a bug or am I doing it wrong?
Title: Re: Alernating inside conditionals breaks WPS
Post by: Llorean on May 29, 2009, 01:40:04 PM
Alternating sublines alternates whole lines. That means you can't place them inside a conditional. After each %t you need to have a whole "line", so you'll need multiple copies of the conditional, one for each alternating line.
Title: Re: Alernating inside conditionals breaks WPS
Post by: madsic on May 29, 2009, 05:24:11 PM
Thanks, Llorean.

For future reference, the wrking version looks like this:
Code: [Select]
%t3%ac%?Fm<next up is...|end of playlist>;%t9%ac%?Fm<%?It<"%It"|"%Fm">|end of playlist>