Is this the correct way to impose 2 conditions in ...
# advancedpdf
n
Is this the correct way to impose 2 conditions in a template's source code? <#elseif record.currency=="USA" && record.subsidiary=="ABC"> <br/>
l
Yes, you use && (and) for both to be true or || (or) for one of statements to be true.
n
is that format correct? It doesnt seem to be honoring both conditions rn
p
Sure you don’t want USD? Rather than USA?
l
You beat me to do reply 🙂 @PNJ
🇺🇸 1
Looking at the XML code of one sales order, I see that Currency uses 1 (internal ID).
The same goes for your subsidiary. NetSuite uses internal ID's. So your code should look something like this: <#elseif record.currency=="1" && record.subsidiary=="#"> where # is the internal ID of your subsidiary that you're matching against
n
ok, ty - i'll give that a try