Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: Alan P-Ten on December 05, 2015, 05:16:18 PM

Title: Using %fv file tag in a Conditional statement
Post by: Alan P-Ten on December 05, 2015, 05:16:18 PM
I can't get the conditional tag in the following to work. I've tried the operand with and without quotes. Can anyone see what I'm doing wrong?  Any help would be greatly appreciated.

#Bitrate
%Vl(a,86,40,40,40,4)
#Green
%Vf(00FF04)
%Fl(4,12-Adobe-Helvetica.fnt)
%?if(%fv, =, "(avg)")<%ac%fbk VBR|%ac%fbk CBR>
%ac%fc
Title: Re: Using %fv file tag in a Conditional statement
Post by: Frankenpod on December 05, 2015, 05:35:43 PM
Don't know why that doesn't work but you could just use

%?fv<%ac%fbk VBR|%ac%fbk CBR>

(or it might be the other way round!)
Title: Re: Using %fv file tag in a Conditional statement
Post by: Alan P-Ten on December 05, 2015, 08:31:18 PM
Wow!  I spending hours trying to figure out that if statement -  thanks for the help.