Support and General Use > Theming and Appearance Customization

Problem with %?if() don't recognizing %pp

(1/1)

huhugaga:
Hi,
i want to write a precedent zero if the playlist position has only one digit:

--- Code: ---%?if(%pp, <, 2)<0%pp|%pp>
--- End code ---
but it doesn't work. When i play e.g. the first item of a folder, it displays "1" instead of "01".
What am i doing wrong? Is there any other way to solve my problem?

thank you

PS: I'm using Rockbox v2.5 on my Recorder v2 due to known bugs with the charging screen...

pixelma:
The %?if tags are a recent addition, they will not work with release 2.5 and not even with the last release version which is 3.6. If you want to use them, you need to update to a current build but I'm not aware of someone having tried them on one of these targets yet. You'll probably need to update the rest of the WPSs too as the syntax has changed since and the parser also got stricter.

Release 2.5 is very old, unfortunately the charging screen bugs seems to not have been fixed by now and current builds come with some small issues (the most severe one to me is the crash on early USB, if you plug USB first and then turn the player on but I can work around that + I use an Ondio which doesn't have charging and so I'm guessing a bit on the charging screen issue).

I'm not sure if I can recommend upgrading to you but if you want to use these tags then you have to.

Navigation

[0] Message Index

Go to full version