We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Conditional IF Statement

Need some advice on a conditional IF Statement in Word.
e.g. <<if <<[Contact__Type]>> == "Person">>[ContactFirstName]<</if>>
it also needs to include an else <<if <<[Contact__Type]>> == "Company">>[ContactFullName]<</if>>


Thanks for your inquiry. The LINQ Reporting engine uses the conditional tags are ‘if’, ‘elseif’, and ‘else’. Please read more detail from following link.
Using Conditional Blocks

Can you confirm whether the code above should work?


Thanks for your inquiry. Please use the if and elseif as shown below in your template document.

<<if [false]>>
This is if part
<<elseif [true]>>
This is elseif part
This is else part