Hi Stuart,
this is based on similar one for fields by Jeremy
\define inner(tid,indexName,match)
<$set name="v" value={{$tid$##$indexName$}}>
<$list filter="[<v>regexp[^$match$$]]" variable="x">
<$text text="""$indexName$"""/>
</$list>
</$set>
\end
\define matchvals(tid,match)
<$set name="t" value=$tid$>
<$list filter="[<t>indexes[]sort[]]" variable="indexName">
<$macrocall $name="inner" tid=<<t>> indexName=<<indexName>> match=$match$/>
</$list>
</$set>
\end
<<matchvals datatid 0>>
all the best
BJ
On Friday, June 10, 2016 at 7:48:55 AM UTC+1, Stuart Amor wrote:
>
> Has anybody develop a hack for this? My data tiddlers look like this:
>
> Sink: 1
> Taps: 1
> Toilet: 0
>
> I would like to create a list of all the Index values, but only the ones
> that have a value of "1"
>
>
--
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/c09db9bc-2ffd-480f-8e6c-0e0a2a70a5ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.