Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [solved] Alternating inside conditionals breaks WPS
« previous next »
  • Print
Pages: [1]

Author Topic: [solved] Alternating inside conditionals breaks WPS  (Read 1522 times)

Offline madsic

  • Member
  • *
  • Posts: 110
    • Vi har pander!
[solved] Alternating inside conditionals breaks WPS
« 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?
« Last Edit: May 31, 2009, 06:51:15 AM by madsic »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Alernating inside conditionals breaks WPS
« Reply #1 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.
Logged

Offline madsic

  • Member
  • *
  • Posts: 110
    • Vi har pander!
Re: Alernating inside conditionals breaks WPS
« Reply #2 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>
« Last Edit: May 31, 2009, 06:50:44 AM by madsic »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [solved] Alternating inside conditionals breaks WPS
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.