%R% != %F1% filter

Main discussion forum
Post Reply
hopalongrock
Sr. Member
Sr. Member
Posts: 289
Joined: Wed Sep 15, 2010 1:38 pm

%R% != %F1% filter

Post by hopalongrock »

The "%R% != %F1%" filter doesn't work well for me. I have track formatting with "padding in files" 01 setting, so for example incorrectly track number 9 isn't equal 09 in filename.
How can I solve this ?
I had a similar problem in my %@R-Rip.scv% script, in that I used padleft(gtag.track,2,'0') to generate the proper value for the string in the filename.

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: %R% != %F1% filter

Post by jtclipper »

You could use something like :

Code: Select all

 0%R% != %F1% and  
 %R% != %F1%


or use a script variable (preferred) :

Code: Select all

begin
  if Padleft( gTag.Track, 2, '0' ) = gTag.ParseValue( '%F1%', false, false ) then
     var_result( '1' )
  else
     var_result( '0' );
end.
and use the above in your filter, for example :

Code: Select all

%@chk_track.scv% = 0

hopalongrock
Sr. Member
Sr. Member
Posts: 289
Joined: Wed Sep 15, 2010 1:38 pm

Re: %R% != %F1% filter

Post by hopalongrock »

Thank you, works fine.

In the filter setting I propose to implement the three dot and the menu (tag field, extended tag field, ...) in the Value column too, not only in the Field column, because now the field and value column works the same way, if I understand well.

User avatar
jtclipper
Administrator
Administrator
Posts: 768
Joined: Tue Aug 10, 2010 12:04 pm

Re: %R% != %F1% filter

Post by jtclipper »

Yes I want to add an ellipsis button to all the controls that accept %variables for example the options and a few other places like the value column in the filter, I hope i can implement it during the 0.89 beta cycle

hopalongrock
Sr. Member
Sr. Member
Posts: 289
Joined: Wed Sep 15, 2010 1:38 pm

Re: %R% != %F1% filter

Post by hopalongrock »

Great, thank you.

Post Reply