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

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

User avatar
user0
XnThusiast
Posts: 1298
Joined: Sat May 09, 2015 9:37 am

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

Post 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
FKCapitalism2
Posts: 210
Joined: Sun Apr 23, 2023 5:14 am

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

Post by FKCapitalism2 »

You want to use ternary IF operator, i'd think many users without programming background find regular IF more easy to understand.
User avatar
user0
XnThusiast
Posts: 1298
Joined: Sat May 09, 2015 9:37 am

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

Post 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