Thank You for your continued support and contributions!
For starters, you have a ; on it's own near the begininning, this does absolutely nothing unless it comes after a %t tag.
call on %Vd(batt) the same time you call %Vd(battCharging), it will have the exact same result you're looking for anyway.
Take for example your first usage %?if(%bl,>=,20)<%t(0)>%xd(battery,3); If you take out %t(0)>%xd(battery,3);, you're left with invalid theme code, but that's exactly how the %t tag works.
Conditionals can be used with sublines to display a different set and/or number of sublines on the line depending on the evaluation of the conditional. Example subline with conditionals:Quote%?it<%t(8)%s%it|%s%fn>;%?ia<%t(3)%s%ia|%t(0)>The format above will do two different things depending if ID3 tags are present. If the ID3 artist and title are present:Display id3 title for 8 seconds,Display id3 artist for 3 seconds,repeat…If the ID3 artist and title are not present:Display the filename continuously.Note that by using a subline display time of 0 in one branch of a conditional, a subline can be skipped (not displayed) when that condition is met.
%?it<%t(8)%s%it|%s%fn>;%?ia<%t(3)%s%ia|%t(0)>
I might be wrong here, but they shouldn't even work if they were inside a conditional like %?bl<%t(0);..> as rockbox would treat each subline as a new line thus breaking the conditional.
It's worth stressing though that the %t tag is not the solution to your problem here. Displaying a different battery icon when charging is far better suited to conditionals on their own.
Funny you should say that, because that's exactly what I found in the AdwaitaPod, and putting ; inside the conditional appears to be the only functioning way to skip a subline. So the practical problem has been solved, but I still have to wonder why %t(0) doesn't work.
%?mh<1|%t(0)>;%?if(%Lt,=,themes)<%t(2)2|%t(0)>
%?mh<1|%t(0)2>;%?if(%Lt,=,themes)<%t(2)3|%t(0)4>
%?if(%Lt,=,themes)<%t(2)3|%t(0)4>;%?mh<1|%t(0)2>
Page created in 0.061 seconds with 16 queries.