INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC11: How do I use Expressions for this?  (Read 2088 times)

sbsp2

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 402
MC11: How do I use Expressions for this?
« on: March 22, 2005, 09:56:28 am »

I want to have a smart file and/or directry name template that only includes the year if the year tag data is present.

So, currently for a directory name template I use:  [Artist]\[Album] ([Date (year)])

That is great as long as a year is in the tag data.  If not, I get (Unknown Year) for the year portion of this directory name.

Can I use an Expression for the ([Date (year)]) portion of this template that will account for no year present and NOT add the year to the directory name so that I end up with just [Artist]\[Album] insteads (no year reference)?  If so, can someone give me an example?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: MC11: How do I use Expressions for this?
« Reply #1 on: March 22, 2005, 11:07:36 am »

How about:
[Artist]\[Album]If(IsEmpty([Date], 1), ,/ /(FormatDate([Date], Year)/))
Logged
Matt Ashland, JRiver Media Center

sbsp2

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 402
Re: MC11: How do I use Expressions for this?
« Reply #2 on: March 22, 2005, 11:48:47 am »

Thanks.  That looks like it should work.  I knew you'd have a quick answer.
Logged
Pages: [1]   Go Up