Hi, It looks like you are treating TiddlyWiki and widgets like a programming language, trying to do iteration in each loop. That doesn't work.
Take a look at the "counter" attribute in list widget. That is a relatively new feature to help handle what you are doing. To get the desired output: <$list filter="[tag[TableOfContents]]" counter="a"> <$text text={{{ [<a>multiply[2]]}}}/> <<currentTiddler>> <br/> </$list> On Sunday, November 28, 2021 at 1:58:53 PM UTC-4 Siniy-Kit wrote: > Hi! I write a simple macros on https://tiddlywiki.com/ > > *<$vars a=0>* > *<$list filter="[tag[TableOfContents]]">* > *<$vars a={{{[<a>add[2]]}}}> <<a>></$vars> <<currentTiddler>> <br/> * > *</$list>* > *</$vars>* > > and I see this > > 2 HelloThere <https://tiddlywiki.com/#HelloThere> > 2 Learning > 2 Working with TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> > 2 Customise TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> > 2 Features > 2 Languages > 2 Editions > 2 Plugins > 2 Platforms > 2 Reference > 2 Community > 2 About > > but I want to see this > > 2 HelloThere <https://tiddlywiki.com/#HelloThere> > 4 Learning > 6 Working with TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> > 8 Customise TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> > 10 Features > 12 Languages > 14 Editions > 16 Plugins > 18 Platforms > 20 Reference > 22 Community > 24 About > > where is my mistake? > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8ac1ed92-f5b8-4a32-a0e6-6a982435bb77n%40googlegroups.com.