This also works on pre-release
<$set name=count value={{{ [get[num]count[]] }}}>
Average: {{{ [get[num]sum[]] ~[[0]] +[divide<count>] }}}
</$set>
So I expect we can say when manipulating values found in fields and keeping
maths operators to a small set of rules it works.
- Use {{{ to wrap }}}
- use set to store intermediate values
- Use + to act on the result so far
- Use ~[[else]] for the missing /default value
- use get to source number then immediately a maths operator
Tony
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/148a293b-827f-40fc-ac15-8c9052088aae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.