A previous answer suggested here leads me to the conclusion I can merge images, but without control of the datasource how can I make the image different based upon a field condition? For instance if the customer is Canadian the logo will be one thing, if US it will be another. There are actually account groupings and the parent companies have different assigned responses. I need to make conditional merges based upon the data I am receiving.
You can achieve this through one template by using conditional IF fields.
For example, if you only have two possible options you can use this:
However if you have more than two options it's more suitable to do something like this:
You would want all three on the same line next to each other. If the country code does not match what is merged then the images are hidden and only the image of the one that match is shown.
What I did is that I make different template for each group. For your example, one template is for Canadian. Another is for US. (Duplicate Canadian template to be US template and change to Canadian's logo to US's logo)
The following is the code that I did for my project. If
But disadvantage is if you have too many groups. You may need a bunch of templates, which are hard to maintain.