Depth Variable

I noticed there is no way to currently check for the current depth. For instance, right now, I have a dynamic navigation that starts on the level of the current selected page. However, I only want to display that dynamic navigation if the depth of the current page is 3. Currently, I don't see any way to accomplish this. In theory, adding a depth variable would allow for this:

{exp:navee:custom nav_title="main" start_nav_on_level_of_selected="true" last_class="last"}
{if "{depth}" == "3"}
<li id="{id}" class="{class} {if has_kids}arrow{/if}"><a href="{link}">{text}</a>{kids}</li>
1 person likes
this idea