I am using the free version of spire.doc for python to create a mail merge template. I'd like to determine the difference of two fields in an if statement to make a decision:
- Code: Select all
{IF {= {MERGEFIELD field1} - {MERGEFIELD field1}} > 20 "Good" "Bad"}
I can't work out how to output the
- Code: Select all
{= {MERGEFIELD field1} - {MERGEFIELD field1}}
Thank you,
Martyn