i want to be able to test if a product has a brochure as stored in the addon for product pdfs ...
This line DOES show the url if a brochure exists ... [%ASSET_URL type:'brochure' id:'[@SKU@]'; /%] ... BUT the tests below ALWAYS returns a false response (ie. prints NO) no matter whether there is or is not a pdf file and so it NEVER runs the branch for a true test ...
[%if [%ASSET_URL type:'brochure' id:'[@SKU@]'; /%] ne ''%]
YES
[%else%]
NO
[%/if%]
[%if [%ASSET_URL type:'brochure' id:'[@SKU@]'; /%]%]
YES
[%else%]
NO
[%/if%]
Can anyone help me with the code I need to test if that field has a value???