Free Support Forum - aspose.com

Maximum Limit of Nested IF Statements Fields | MS Word Document | Aspose.Words DOM (Document Object Model) | C# or Java

What is limit of Nested IF statement?
Basically I want to know how many If condition I can use in Nested IF statement.

@Rakesh2013,

In Aspose.Words, it is only limited by the Stack’s size. In practice, this means that the nesting level can be very high, but unfortunately we cannot provide the exact number; rest assured, Aspose.Words does not limit it explicitly.

In MS Word, we do not know what the exact limit is. Maybe MS Word has some internal nesting limit, or maybe not. But definitely, whatever nesting level MS Word supports, Aspose.Words should support it too. Hope, this helps.

Thanks for the answer. I will check limit of MS Word.