Page 1 of 1

Metadata - tag - add functionality to conditionally show custom text within tag

Posted: Mon Jun 26, 2023 8:38 pm
by user0
XnViewMP 1.5.0 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%


Metadata - tag
there is no way to conditionally display text based on tag data,
eg ({Color label}) appearsas as () when tag is empty, which does not look nice

Suggestion
add functionality to conditionally show custom text within tag (if tag is not null or <> empty_string) via
  • ternary operator
    eg {{Color label} ? ({Color label}) : ""}
    {{Color label} = "" ? ({Color label}) : ""}

    OR
  • custom text in tag
    eg {"("Color label ")"}



Related

Re: Metadata - tag - add functionality to conditionally show custom text within tag

Posted: Fri Sep 22, 2023 10:28 am
by FKCapitalism2
You want to use ternary IF operator, i'd think many users without programming background find regular IF more easy to understand.

Re: Metadata - tag - add functionality to conditionally show custom text within tag

Posted: Fri Sep 22, 2023 10:40 am
by user0
it's no more complicated than the IF formula in Excel
I don't mind full if/else notation, but in my opinion it's not necessary here since there shouldn't be a lot of text in these conditional statements

UPD
there is (( )) tag that hides everything inside, if tag(s) has no value