# "max-depth" Rule Defines a max depth a ISML tree node can have. This is a good rule to keep your templates' complexity low. ## Notes - Dependent on abstract tree build (global "disableTreeParse" configuration must **not** be true); ## Configuration Following are the available configurations for this rule, with default values: ```js "max-depth": { value: 10 } ``` Check the [Generic Configurations for Rules][generic-config]. ## Examples ```js "max-depth": { value: 2 } ``` For the above configuration, the following scenarios may happen: ```
// Depth: 1; // Depth: 2; ${price} // Invalid depth: 3 ( >2 ); Free! // Invalid depth: 3 ( >2 );
``` ```
// Depth: 1; ${isTrue ? price : 'Free!'} // Depth: 2;
``` [generic-config]: <../generic-rule-config.md>