Can I wrap a section break in an If/else condition?

I see in version 21.1+ that section breaks can now be wrapped in a loop. Can they be wrapped in an If/else condition?

Error generating report when Section Break is included in a <> loop - Aspose.Words Product Family - Free Support Forum - aspose.com

I was able to confirm that yes I can wrap section and page breaks in if/else conditions.

@emcclellan

It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.