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:

Thank You for your continued support and contributions!

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

Author Topic: Unclosed Conditional??  (Read 1346 times)

Offline reydarz

  • Member
  • *
  • Posts: 6
Unclosed Conditional??
« on: October 24, 2009, 12:03:03 AM »
I'm having trouble writing my WPS, I'm attempting to toggle between an image of the current repeat mode, and a shuffle image if shuffle is on, and the repeat image if shuffle is off, but i can't figure this error out: ERR:Unclosed conditional

The Offending Line:
%?ps<%?mm<%xdra|%xdrb|%xdrc|%xdrd|%xdre>;%xds|%?mm<%xdra|%xdrb|%xdrc|%xdrd|%xdre>>

Any help would be appreciated, thanks

* badcode.jpg (7.5 kB, 598x30 - viewed 199 times.)

* error.jpg (6.42 kB, 517x59 - viewed 199 times.)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Unclosed Conditional??
« Reply #1 on: October 24, 2009, 02:16:11 AM »
A ; ends a line. You can't put them inside conditionals, you need to close all conditionals before the semicolon. If you wish to do this line, you'll need the same conditional again after the semicolon, with the alternate line inside the duplicate conditional.
Logged

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

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

Page created in 0.062 seconds with 15 queries.