INTERACT FORUM

Please login or register.

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

Author Topic: Expression function help  (Read 1107 times)

aaronshaw

  • Guest
Expression function help
« on: July 16, 2011, 01:34:16 pm »

I'm trying to make an expression to 'auto-tag' the name of tv series. So far I've got it pulling the name of the series from the folder the shows are in using:

listitem([filename],5,\

I want to add a conditional that only returns a result if the filepath contains the keyword TV (this way it wont return anything if the files are in the Movies folder), I've tried using the if(isequal([filename (path)] function but can't get it to work.

Anyone know how to get it to work?
Logged

minolotus

  • Junior Woodchuck
  • **
  • Posts: 93
Re: Expression function help
« Reply #1 on: July 16, 2011, 02:53:29 pm »

if(isequal([filename (path)],TV,7),listitem([filename],5,\),)

This expression is case-sensitive. If you would like to have a search rule which is not case-sensitive, replace 7 by 8.
Logged

aaronshaw

  • Guest
Re: Expression function help
« Reply #2 on: July 16, 2011, 02:58:43 pm »

Brilliant! Thank you, looks like I missed out the closing parenthesis when I was trying to work it.
Logged
Pages: [1]   Go Up