Seeing "Just the headers"

Is there a way of stamping a command to collapse ONLY the notes that are parents but NOT grandparents?

something like…

if(sum(descendants,$ChildCount)==0) {collapse=true} else{collapse=false}

Hi. action code doesn’t have a means to control outline/chart branch expansion/collapse state.

However, if it helps you can determine a those notes that have grandchildren with this query:

$OutlineDepth==1 & $ChildCount > $DescendantCount

This gives you all root-level containers with children but no descendants.

1 Like

Thanks Mark.

1 Like