Author Topic: Problem with $if(<field>=<field>...  (Read 319 times)

Johan_A_M

  • Jr. Member
  • **
  • Posts: 117
I'm having a strange problem with the $if(<field>=<field>,true-value, false-value) function. I'm trying to create a template that adds some information if <year> is different from <original year> (basically add country and mastering). However, I can't get it to work, as can be seen in the screenshot.



Here are the information in Tag Inspector:





Isn't it strange that the equal sign and less than sign give the results they do?

vincent kars

  • Sr. Member
  • ****
  • Posts: 444
A possible explanation can by the type.
The documentation says that < and > only works on numerical tags.
Year and OriginaL Year might by of the type "date"

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34312
MB isnt handling 4 digit years as a date
This should fix the issue:
https://getmusicbee.com/patches/MusicBee35_Patched.zip
unzip and replace the existing musicbee application files

Johan_A_M

  • Jr. Member
  • **
  • Posts: 117
MB isnt handling 4 digit years as a date
This should fix the issue:
https://getmusicbee.com/patches/MusicBee35_Patched.zip
unzip and replace the existing musicbee application files

Thank you Steven, that fixed it!
And thanks Vincent for trying to help!