Go EXPANDBRANCH

I use this to smart toggle expand/collapse, making use of Evaluator clauses.

@label=expanded>0 ? "&Collapse Folders" : "&Expand Folders"
Go * EXPANDBRANCH=wild,{=expanded>0 ? "collapse" : "top"=}

Basically, if you have any folders expanded, it will be collapsed, otherwise, all the folders will be expanded (only top level)

3 Likes