A question came through today: what is the syntax for a logical OR in a BI/XML Publisher IF statement?
The standard BI Publisher "IF" statement doesn't seem to cut it.
Lets say I want a test:
if (a=1 or a=2) and b=3 then output_my_stuff end ifI don't want to have to repeat output/logic like:
if a=1 then if b=3 then output_my_stuff end if end if if a=2 then if b=3 then output_my_stuff (again) end if end ifA solution is to use form fields with an xsl if statement structure. So we have:
<xsl:if test="(A='1' or A='2') and B='3'"> output_my_stuff </xsl:if>If it works use it!