Page 1 of 1

IF EXIST and other basic logical functions

Posted: Wed Aug 29, 2012 9:41 am
by kubasasasa
Image

It would be nice if you could add a feature of basic logical functions within xnview.

For instance: I like to see basic photo exposure parameters while watching photos full-screen (image above) so I created such an information scheme to be shown with a picture.
The problem starts when one of the EXIF values is missing. In this case often <Focal Length 35mm> is just not there. Therefore - I don't want to see the rest of description: "mm [@35mmm]" either...

I'd love to see something like this possible:

IFEXISTS <Focal Length 35mm> THEN "<br>l= <Focal Length 35mm> mm [@35mm]" ELSE ""

and other:

IF something1 >= something2 AND/OR/XOR/NOT something3 = "sometext" THEN do_something ELSE do_something_else

Re: IF EXIST and other basic logical functions

Posted: Wed Aug 29, 2012 10:00 pm
by obelisk
way too complex for a viewer.
I'd rather time was spent on other features

an easier option may be just to compact empty lines

Re: IF EXIST and other basic logical functions

Posted: Thu Aug 30, 2012 1:02 pm
by JohnFredC
For the thumb labels and tooltips, you can use double parentheses - "((" and "))" - to hide the values for which XnView can find no data.

For instance, in the following image observe how one of the thumbs shows exposure data in the label and the other one does not:

Image

Here is the code for the last line of the label:

Code: Select all

((<Focal Length>mm)) ((f/<F-Number>)) ((<Exposure Time>s)) ((<ISO Value>iso))
Cool, huh?

Re: IF EXIST and other basic logical functions

Posted: Thu Aug 30, 2012 9:29 pm
by kubasasasa
Great! Now it works....
But - this functionality is a bit hidden - can you add a tooltip or a help window or just a simple label somewhere on the right - describing how double parentheses work?
Not everyone reads this forum and I believe many are interested in such feature...

Thank you very much!

Re: IF EXIST and other basic logical functions

Posted: Thu Aug 30, 2012 9:45 pm
by XnTriq

Re: IF EXIST and other basic logical functions

Posted: Sat Sep 01, 2012 7:25 pm
by helmut
Really a cool feature. Haven't heard about this one before. :-O