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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  nested conditional?
« previous next »
  • Print
Pages: [1]

Author Topic: nested conditional?  (Read 1348 times)

Offline patdman

  • Member
  • *
  • Posts: 4
nested conditional?
« on: August 08, 2007, 06:19:22 PM »
Hi there,

I only just downloaded rockbox yesterday and wanted to tweak one of the themes that came with the default pack (rockboxed) but am having trouble with a nested conditional statement.

Basically, I want to display "Artist (Comment)" if a comment exists.
Otherwise, just display "Artist"

This is what I have mashed into the existing WPS;

%al %s%ac%?ia<%ia?<%ia (%iC)>|%d2>%ar

Any thoughts on where I have gone wrong?
Any help is most appreciated.

Cheers,

Pat.

Logged

Offline Hweb21

  • Member
  • *
  • Posts: 164
Re: nested conditional?
« Reply #1 on: August 08, 2007, 06:25:21 PM »
%al %s%ac%?ia<%ia?<%ia (%iC)>|%d2>%ar

to

%s%ac%?ia<%ia%?iC<(%iC)|>|%d2>
Logged

Offline patdman

  • Member
  • *
  • Posts: 4
Re: nested conditional?
« Reply #2 on: August 09, 2007, 10:36:32 AM »
Worked a treat! thanks very much for your help.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  nested conditional?
 

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

Page created in 0.063 seconds with 15 queries.