I want an attribute to appear in a parent note that gives the sum of its children $WordCount. But so far my attempts have failed, and I can’t figure out why.
I copied straight from the Tinderbox Reference File (sum(group, value)), changing only the name of the attribute.
Example: $MyNumber = sum(children,$WordCount);
My adaptation: $sumWordsChildren = sum(children,$WordCount); I’ve put this in the Action panel.
The result is always zero even for a set of a half dozen children whose total word count is 500+.
I’ve already made a handful of successful attempts at inserting action code, so I’m not completely new. I do know about the semicolon at the end, etc.
It’s an action (what I understand to be like a rule or edict except that it occurs more quickly). The attribute really is “sumWordsChildren”. Lowercase S in “sum.”