[tw] Re: [TW5] looping through an array in a macro

2015-09-13 Thread Mat
@evolena > <$list filter="""$filter$"""> > I don't think the triple quotes are necessary, i.e enough with single quotes, or? <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from

[tw] Re: [TW5] looping through an array in a macro

2015-09-13 Thread Bob Flandard
Hello Evolena, Thank you for your code suggestion but it's a bit too abstract for my tiny brain. I was thinking of something of the form: \define myMacro(arg1 arg2) for i in arg1: make a string that does something useful and insert $arg1[i]$ and $arg2[i]$ values \end myArray1=[string1,

[tw] Re: [TW5] looping through an array in a macro

2015-09-13 Thread Evolena
Le dimanche 13 septembre 2015 10:48:18 UTC+2, Bob Flandard a écrit : > > Hello, > > Is it possible to define an array and pass it as an argument to a user > defined macro and then loop through each element of the array within the > macro? > > Thanks, Bob > Of course, something lke that:

[tw] Re: [TW5] looping through an array in a macro

2015-09-13 Thread 'Mark S.' via TiddlyWiki
The built-in tools don't work that way. You would probably need to write a widget or a javascript macro if you really want to do something step-wise. But it if you explain what exactly it is you want to accomplish, there are a lot of clever people in this forum who have thought up all sorts of