Summary
AND Not working inside if statement in BI Publisher template
Content
Hi Experts,
Below expression error out when sample xml was loaded into RTF template on word and trying to generate PDF. "BookingMRC" and "TotalMRC" and xml tag in the sample xml.
Not working:
<?if:BookingMRC != '' AND TotalMRC != '' AND TotalMRC > 0 AND BookingMRC < 0?>
Increase%: <?xdoxslt:round((((-BookingMRC) div TotalMRC)*100),2)?> %
<?end if?>
Working:
<?if:BookingMRC != ''?><?if:TotalMRC != ''?><?if:TotalMRC > 0?><?if: BookingMRC < 0?>
Increase%: <?xdoxslt:round((((-BookingMRC) div TotalMRC)*100),2)?> %
<?end if?><?end if?><?end if?><?end if?>
Why not working with first approach?
Thanks,
Vinay