INTERACT FORUM

Please login or register.

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

Author Topic: simple expression help needed - solved  (Read 1063 times)

galahad1974

  • World Citizen
  • ***
  • Posts: 244
simple expression help needed - solved
« on: October 19, 2009, 07:25:41 am »

im trying to get my files to be place in a subfolder by even if one is present, if not, i dont want the subfolder created at all. currently my problem is that if i dont have a value in events it creates  folder called "unknown events". the bold below is the code for the event stuff. i know im missing something simple, what is it? all help is welcome and appreciated!!

if(isequal([Media Type],image,1),\images\[.Media Sub Type]\RemoveRight([Date (Friendly)],4)\removeright(Removeleft([Date (Friendly)],4),2)-Removeleft([Date (Friendly)],6)\if(isempty([Events]),,[Events])\,no))
Logged

gappie

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 4566
Re: simple expression help needed
« Reply #1 on: October 19, 2009, 07:35:02 am »

you should try to use [Events,0]. this will give an empty value when there is nothing. did not test it, just something i would try first.

 :)
gab
Logged

galahad1974

  • World Citizen
  • ***
  • Posts: 244
Re: simple expression help needed - solved
« Reply #2 on: October 19, 2009, 07:37:09 am »

that was it, thanks!
Logged
Pages: [1]   Go Up