Tinderbox v10 Icon

Top-down

A recursing function using no user attributes. Start at the top, then name all children and so on down.

Code

    function fSectionName(iNote, iSectionValue){
        $Section(iNote) = iSectionValue;
        var:string vName = iSectionValue;
        if (vName != ""){
            vName = vName + ":";
        };
        $Path(children(iNote)).each(aNote){
            fSectionName(aNote, (vName+$SiblingOrder(aNote)));
        };
    };

Logic

Pros and Cons