photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: birdbrain on August 02, 2021, 02:29:12 PM

Title: Metadata templates with conditions?
Post by: birdbrain on August 02, 2021, 02:29:12 PM
Is there a way to conditionally write data with a metadata template?

For example, set the Title as follows:

If dot is red, write {File.Events.Title} : {File.MD.location}: {File.DateTime|format:YYYY}

Otherwise write {File.Events.Title} : {File.MD.location} : Date Unknown

Thanks!
Title: Re: Metadata templates with conditions?
Post by: sinus on August 02, 2021, 02:34:20 PM
I think, you can achieve a lot with variables, I am quite sure, this is possible, but I am not sure of course.

Title: Re: Metadata templates with conditions?
Post by: Mario on August 02, 2021, 02:40:50 PM
This can be done easily enough with a simple is:Value,TV,FV,case (https://www.photools.com/help/imatch/#var_basics.htm?dl=h-196) function.
Tip: Use the VarToy to test your variable.
Title: Re: Metadata templates with conditions?
Post by: birdbrain on August 02, 2021, 03:03:31 PM
Perfect! Thank you.