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

Free Support Forum - aspose.com

Conditional removal

I have conditional tags in my documents. if the condition is true, I want to completely remove only the tags. if th condition is false, I want to remove the tags plus whatever is between them. There might be all sorts of elements in between, such as text, shape, image, table etc.

<<if:x =*false>>
Hi Everyone!


<<if:x =*false>>Hi<<end_if:x=*false>><<if:x =*true>>Bye<<end_if:x=*true>> Everyone!

how can I accomplish this?


Thanks for your inquiry. In your case, we suggest you please use IF field instead of custom tags in your document. You may use LINQ Reporting to get the desired output. Please refer to the following article.
Using Conditional Blocks