Custom URI to exclude entries in structure
You have the full power of Twig in your template to render the entries Uri so you can conditionally render what you want. This could be your template in your section settings 

{% if object.parent.field == true %}{{ object.parent.uri }}{% else %}{{object.parent.slug}}{% endif %}


There are no real limitations since you can do what you are used to in Twig in your frontend