Logical If AND condition in Aspose words

I am trying achieve If with AND condition to show and hide tables in Word document based on the merge fields.
something like below example, but it is not working as desired.
If merge field1 = “” && merge field2 = “” && merge field3 = “” “Don’t Show” “Show”


To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

AND-OR.zip (9.3 KB)

Attached the word document with question.


Please note that Aspose.Words mimics the behavior of MS Word. You can check the result of IF fields by updating them in MS Word by pressing F9.