Eric Shulman wrote:
>
> and, here's a solution to the more specific use-case (gather "number" 
> field values and calculate average)
> \define all()
> <$list filter="[tag[Foo]]">
> <$list filter="[tag{!!title}]">
>    {{!!number}}
> </$list>
> </$list>
> \end
>
> <$wikify name="a" text=<<all>>>
> <$vars total={{{ [enlist<a>sum[]] }}} count={{{ [enlist<a>count[]] }}}>
> total=<$text text=<<total>> />
> count=<$text text=<<count>> />
> average=<$text text={{{ [<total>divide<count>] }}} />
> </$vars>
> </$wikify>
>


Much appreciated Eric! It seems the vars enlist ops need the raw suffix, 
i.e enlist*:raw* to not remove duplicates. Here's a demo: 
http://flattenlist.tiddlyspot.com/
Thank you!

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0b2b288b-4f09-458d-a8aa-8b6227a1f468%40googlegroups.com.

Reply via email to