<#if record.subsidiaryid="17"> template stuf...
# advancedpdf
d
<#if record.subsidiaryid="17"> template stuff <#elseif record.subsidiaryid="18"> template stuff <#elseif record.subsidiaryid="13"> template stuff #else END
a
are you getting an error message with this code?
to correct the syntax highlighting issue i typically close any #elseif statements with `/, e.g.
<#elseif record.subsidiaryid="18" />
also i would imagine that you'd want
record.subsidiary.id
, not
record.subsidiaryid
but haven't tried the latter
d
Hey, thanks. Yeah, here's what I'm getting - Unexpected directive, "<#elseif ". Check if you have a valid #if-#elseif-#else structure
Syntax error in template "template" in line 255, column 1:
Points to <#elseif record.subsidiary.id="18"/>
I'll try and see if I can just run the else-if without any code within just in case it's running into trouble elsewhere on the template
a
hmm
also should it be
==
instead of
=
?
d
Nah, no luck. Mmmm
Thanks though
a
do you have a final
</#if>
after all your
<#elseif>
and final
<#else>
?
d
<#if record.subsidiary.id="x"> Stuff <#elseif record.subsidiary.id="x"> Stuff <#elseif record.subsidiary.id="x"> Stuff #else </#if>
The processing instruction target matching "[xX][mM][lL]" is not allowed. 😂
Googles got some suggestions, I'll try. I think I can only make that declaration once.
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-<//big.faceless.org//report>" "report-1.1.dtd">
a
yeah i'd agree