INTERACT FORUM

Please login or register.

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

Author Topic: new IsEqual modes available. (was: quick expressions question...)  (Read 4149 times)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941

how to use expressions to mirror this type of search

[name]=x,y,z

is the only way to use seperate mid([name],0,-1) statements?

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41941
  • Shoes gone again!
Re: quick expressions question...
« Reply #1 on: March 30, 2006, 07:56:01 pm »

I'm not with you.  Search finds stuff.  Expressions display stuff.

Where are you using the expression, and what's the goal?  Thanks.
Logged
Matt Ashland, JRiver Media Center

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: quick expressions question...
« Reply #2 on: March 31, 2006, 12:49:24 am »

It's for a maintainence viewscheme. I was looking to make a pane that went along the lines of:

if [name] contains illegal characters, [name]=/,\,:,*,?,/" then output illegal.

there's more, and I have that working. Currently, I'm using step 4 of the viewscheme to just exclude those files from view, but would like, if possible, to add them to the existing pane.

It was this thread that got me started building the viewscheme as the number of files I found out of sync in this respect quite surprised me, so I decided to add it to my 'workshop' viewschemes.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: quick expressions question...
« Reply #3 on: April 03, 2006, 01:44:25 pm »

how to use expressions to mirror this type of search

[name]=x,y,z

is the only way to use seperate mid([name],0,-1) statements?

fair to assume the answer is 'yes' ?

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: quick expressions question...
« Reply #4 on: April 08, 2006, 09:11:35 am »

bumped into this again and I can't reach it.

this is for images. some of my images have the word 'edited' in their filename. I want to set a line of thumbnail text that says either edited or original

Is it possible to write a string that says "if the [filename (name)] contains the word edited, output edited, else output original" and if so, how to do it?

using this as a search string works OK. [=mid([filename (name)],0,-1)]=edited
but I have had no joy so far in turning it into an if() expression.

-marko.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: quick expressions question...
« Reply #5 on: April 17, 2006, 06:30:51 am »

still haven't been able to work this out.

attainable or no?

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41941
  • Shoes gone again!
Re: quick expressions question...
« Reply #6 on: April 17, 2006, 03:07:13 pm »

Next build will add "substring" and "substring (no case)" to the IsEqual modes. ( mode 7 and 8 )

So:
If(IsEqual([Filename], edited, 7), Edited, [Filename])
Logged
Matt Ashland, JRiver Media Center

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5906
  • Farm Animal Stupid
Re: quick expressions question...
« Reply #7 on: April 17, 2006, 03:11:48 pm »

How do we use mode 8)?
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: quick expressions question...
« Reply #8 on: April 17, 2006, 03:52:52 pm »

nice surprise. thanks.

Doof, the way I'm reading it, 7 will be a case sensitive query, and 8 will be case insensitive.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8941
Re: expressions: new if() modes available
« Reply #9 on: April 20, 2006, 04:09:12 am »

This works so very well indeed. Most excellent.

I want to nit-pick about the distance between the thumbnail text and its relative thumbnail because for some reason, my mind expects the text to be closer to the image to which it relates than the one immediately below it, and for the most part, what I see here is more like a row of images, followed by a row of text, followed by another row of images...


(click for full size image)

a bit like that, if you see what I mean. Imagine this is the first time you've ever seen images in MC, does the text relate to the image above, or below it?

'tis only a nit-pick though. while I'm still torn between a couple of apps for my image management, I noticed this morning that my images directory has burgeoned to a ridiculous 12.5 Gb  :o ::)
gotta do some thinking....

thanks for this addition to 'if()' though. it's opened up some useful possibilities.
Pages: [1]   Go Up