Experimental Feature: Overlays - formula not working as expected

Started by axel.hennig, Today at 09:43:18 AM

Previous topic - Next topic

axel.hennig

In the "Handling Empty Tag Values"
https://www.photools.com/help/imatch/overlays.htm?dl=hid-11
there is the hint to use the following (screenshot):

You cannot view this attachment.

I think that does not work as intended. I think to make this work - i.e. row does not show when ISO or Lens is empty - one has to use "prefix" like:

-row={File.MD.iso|prefix:ISO:}
I think that's because both rows are not "empty". They contain either "ISO:" or "Lens:".

Mario

The correct row definition is of course

Quote--row={File.MD.iso|hasvalue:ISO}$${File.MD.iso}
--row={File.MD.lens|hasvalue:Lens}$${File.MD.lens} 
I have updated the help topic accordingly.

The screen shot shows two columns (the : was a leftover from a previous iteration of the concept).
Columns are separated by $$.

To make the rows disappear we need to ensure that both columns become empty when the variable has no value.
So we use hasvalue to output the first column values conditionally.