photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: javiavid on March 24, 2021, 07:14:53 PM

Title: Multiple arguments for a variable
Post by: javiavid on March 24, 2021, 07:14:53 PM
In the attached image I have a column called codec__, inside appear different texts and I would like to be able to format them. I have seen that with the arguments it is possible to do some operations, but I am not clear if I can use several arguments consecutively. This column is created by a variable called {application.variables.codec__}


- Is it possible to join these arguments to be able to do several operations at a time?


For example:

1st Line - Convert AVC1 into H264 (current text: AVC1)

{Application.variables.codec__ | Replace: AVC1 == H264}

2nd Line - which only appears cineform (current text: QuickTimecfhgcineform)

{Application.variables.codec__ | Contains: cineform,cineform}



-If it is not possible to mix arguments, is it possible to add arguments of the same type?

For example:

With the following text, which only the words allowed QuickTime and DNXHD appear

QuickTime Prores DNXHD H264 DV

And it becomes this:

QuickTime DNXHD.


Thanks

Title: Re: Multiple arguments for a variable
Post by: Mario on March 24, 2021, 07:54:56 PM
Use ; to separate variable functions. They are processed from L2R, with some rare exceptions.
Use the Var Toy app included in IMatch for testing variables. Very handy, immediate feedback. Can store variables in a history for later recall.
And of course Formatting Variables (https://www.photools.com/help/imatch/#var_basics.htm?dl=h-180)
Title: Re: Multiple arguments for a variable
Post by: javiavid on March 24, 2021, 09:07:22 PM
Thanks!