INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: marko on March 30, 2006, 02:46:43 pm

Title: new IsEqual modes available. (was: quick expressions question...)
Post by: marko on March 30, 2006, 02:46:43 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?

Title: Re: quick expressions question...
Post by: Matt 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.
Title: Re: quick expressions question...
Post by: marko 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 (http://yabb.jriver.com/interact/index.php?topic=32700.0) 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.
Title: Re: quick expressions question...
Post by: marko 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' ?
Title: Re: quick expressions question...
Post by: marko 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.
Title: Re: quick expressions question...
Post by: marko on April 17, 2006, 06:30:51 am
still haven't been able to work this out.

attainable or no?
Title: Re: quick expressions question...
Post by: Matt 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])
Title: Re: quick expressions question...
Post by: Doof on April 17, 2006, 03:11:48 pm
How do we use mode 8)?
Title: Re: quick expressions question...
Post by: marko 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.
Title: Re: expressions: new if() modes available
Post by: marko 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...

(http://www.theganghut.co.uk/pics/ia/tntt.jpg) (http://www.theganghut.co.uk/pics/ia/tnt.jpg)
(click for full size image (http://www.theganghut.co.uk/pics/ia/tnt.jpg))

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.