\define plotchain()But if someone builds a cirle this crashes the wiki.
<$set name="chain" value="JJ/Das merkwürdige Tier">
$(chain)$
<<reku>>
</$set>
\end
\define chainer() [[$(chain)$]]
\define reku()
<$list filter="[list[$(chain)$!!thread]] [list[$(chain)$!!storylink]]" variable="chain">
<<chainer>>
<<reku>>
</$list>
\end
<$vars chain="JJ/Das merkwürdige Tier">
<<chainer>>
<<reku>>
</$vars>
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/205a7345-aa5b-4b90-9757-9ad96929e146%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/473b4f62-70f6-4dd9-8638-12cc85b66873%40googlegroups.com.
Bimlases kin operator can generate flat lists from a hierarchy all by itself in a single filter.
Have a look at it.
Tony
\define recurseme(yourvar,count)
<$list filter="[<__count__>!regexp[^0$]]" emptyMessage="TOO MANY RECURSIONS!" >
I'm doing important things here! <br/>
<$set name="count" filter="[<__count__>subtract[1]]" select=0>
<$macrocall $name=recurseme yourvar="Stuff" count=<<count>>/>
</$set>
</$list>
\end
<<recurseme "more" "5">>\define fibber(last,next,count)
<$list filter="[<__count__>!regexp[^0$]]" emptyMessage="<<last>> <<next>>" >
<$set name="count" filter="[<__count__>subtract[1]]" select=0>
<$set name="next" filter="[<__last__>add<__next__>]" select=0>
<<__last__>> <$macrocall $name=fibber last=<<__next__>> next=<<next>> count=<<count>>/>
</$set></$set>
</$list>
\end
<<fibber "0" "1" "6">>\define fibber(last,next,count)<$list filter="[<__count__>!regexp[^0$]]" emptyMessage="<<__last__>> <<__next__>>" >
<$set name="count" filter="[<__count__>subtract[1]]" select=0>
<$set name="next" filter="[<__last__>add<__next__>]" select=0>
<<__last__>> <$macrocall $name=fibber last=<<__next__>> next=<<next>> count=<<count>>/>
</$set></$set>
</$list>
\end
<<fibber "0" "1" "6">>
Added to TW-Scripts.
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4fcbd0c2-d657-4151-8a2a-b8ca35db8b27%40googlegroups.com.