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

Free Support Forum - aspose.com

Compare boolean mergefield does not work anymore


When using a MERGEFIELD with a boolean value in an ‘IF’ statement, it does not compare the true or false value anymore.

In previous versioon 14.11.0, the following works: { IF { MERGEFIELD test } = “true” “Condition true” “Condition false” }
In new version 16.12.0 this always returns false, it cannot compare boolean values anymore, it has to be converted to string: { IF “{ MERGEFIELD test}” = “true” “Condition true” “Condition false” }

But we cannot change all our existing templates. Is their a way to fix this?

I’ve included a test project.

Kind regards,
Hi Ann,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15087. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-15087) have been fixed in this Aspose.Words for .NET 17.4 update and this Aspose.Words for Java 17.4 update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.