Custom columns - conditions?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Aleq
Junior Member
Junior Member
Posts: 55
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Custom columns - conditions?

Post by *Aleq »

Hello,
I'm using EXIF custom column plugin:

Code: Select all

[=exif.ExposureTimeFraction], F[=exif.FNumber] ([=exif.MaxApertureValue]), f=[=exif.FocalLength]mm, ISO[=exif.ISO], +/- [=exif.ExposureBiasValue], [=exif.MeteringMode], [=exif.ExposureProgram]
which results in

Code: Select all

1/60, F8.0 (2.0), f=28mm, ISO400, +/- 0, center weighted average, aperture priority
However, if no EXIF is found (JPEGs without EXIF, other files, directories)

Code: Select all

, F (), f=mm, ISO, +/-...
is showed. How can I show "No EXIF found"?

Can I put a condition in the column defintion, perhapse something like [=if exif.ISO == ""] ..... [=else] No Exif! [=endif]?

Thanks!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Aleq
Hi,

Define pre- and suffixes as defined in the help:
[="prefix"pluginname.fieldname.unit"suffix"]

The strings prefix and/or suffix will only be shown when the field "fieldname" exists and has a valid value in plugin pluginname. For example, you can use this to show a measurement unit when the field is present, and nothing when the field is not present.
Aleq
Junior Member
Junior Member
Posts: 55
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Post by *Aleq »

That's good, sufficient solution if there are no conditions allowed. Thank you.

By the way, is it possible to write "No exif found" if no exif is found :-) ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, because there is no "EXIF present" field...
Author of Total Commander
https://www.ghisler.com
Aleq
Junior Member
Junior Member
Posts: 55
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Post by *Aleq »

Existence of =exif.ISO could be sufficient for this purpose....
Post Reply