Hi,
to get a conditional hierarchy separator für "Sublocation", I tried
{File.MD.location|hasvalue:test}
but this emits always "test" even if location is empty.
{File.MD.location|default:test} works as expected: Emits "test" only if sublocation is empty.
Anything wrong with my attempt?
This expression
[{File.MD.location}]
{File.MD.location|hasvalue:test}
{File.MD.location|default:test}
gives me either
[]
test
or
[Studio FFM]
test
Studio FFM
depending on whether or not the XMP location tag has data. Looks OK to me.
Did you check the actual contents of the location tag? Maybe it contains a blank or another invisible character?
thanks for testing this.
I'm getting:
[]
test
test
and
[Neuhausen-Nymphenburg]
test
Neuhausen-Nymphenburg
respectively.
Maybe an error fixed after 2019.8.4 I'm still using.
I can work around it.
There have been many bug fixes since that old version. You can check https://www.photools.com/release-notes/ for all bug fixed since 2019.