INTERACT FORUM

Please login or register.

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

Author Topic: Expression Help (comparing fields)  (Read 759 times)

wig

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 750
Expression Help (comparing fields)
« on: January 09, 2015, 07:10:15 am »

I'm hoping one of the board's expression wizards will be able to help me with this question.

I would like to compare the values of two different fields for my library collection, and display all items that don't have identical values.

The specific example: I have a custom field called [Comment Expression]. I would like to test it against the [Comment] field, and display all the items where the values don't match.

Any ideas?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42382
  • Shoes gone again!
Re: Expression Help (comparing fields)
« Reply #1 on: January 09, 2015, 09:11:24 am »

If(IsEqual([Comment Expression], [Comment]), [Comment], nothing)
Logged
Matt Ashland, JRiver Media Center

wig

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 750
Re: Expression Help (comparing fields)
« Reply #2 on: January 10, 2015, 07:52:21 am »

Thanks, Matt!

I ended putting that expression in a custom field, and then creating a smartlist to display all of the files where the values weren't equal. It works exactly like I was hoping for. 
Logged
Pages: [1]   Go Up