How to unlist Sub Section from Index Page

See my answer at: Empty section condition? - #2 by alexandros

And modify your snippet accordingly.

EDIT
This is what I had posted in that thread originally (before I edited my answer). So to exclude a Nested Section try:

{{ $sections := (.Site.GetPage "section" .Section).Sections }}
{{ range where $sections "Params.exclude" "ne" "true" }}