logical operation in pdf template

Hi Team,

I am trying to put some logical operation on variables like if else or arithmetic(sum,division ) etc in pdf template. is there any way to do in pdf template designing work and incase not how can i do it in other way

HI

I don’t really know the answer but I think you could achieve something here

https://github.com/salesagility/SuiteCRM/blob/master/modules/AOS_PDF_Templates/generatePdf.php

intercept the place where variables are being replaces and add some of your own logic…