<<mymacro "aa bb cc">> and <<mymacro "dd [[ee ee]] ff">>
Thanks for input. I rephrased the question so hope it makes sense now.<:-)
--
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 post to this group, send email to tiddl...@googlegroups.com.
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/36c28287-71cc-44d8-9ed6-75539d67bd0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
\define mymacro1(input) <$list filter="$input$ +[nth[2]]">[[<$view field=title/>]]</$list>
\define mymacro2(input) <$list filter="$input$ +[nth[2]]"><$view field=title/></$list>
\define mymacro3(input) <$list filter="$input$ +[nth[2]]"></$list>
<<mymacro1 "aa [[bb bb]] cc">>
<<mymacro1 "aa bb cc">>
<<mymacro2 "aa [[bb bb]] cc">>
<<mymacro2 "aa bb cc">>
<<mymacro3 "aa [[bb bb]] cc">>
<<mymacro3 "aa bb cc">>
<<mymacro "aa [[bb bb]] cc">>
<<mymacro "aa bb cc">>
<<mymacro "aa bb cc">> and <<mymacro "dd [[ee ee]] ff">>
How do I access bb and [[bb bb]] only if I want the result to be:1a) bb and ee ee1b) bb and ee ee1c) [[bb]] and [[ee ee]]
Do remember that many of us read this list via email, so it's much better to repost, and not rely on people visiting the forum directly.
I.e three different macros (presumably using filters) but where each macros deals with the input as multiple items and where the output is in the same "format" regardless if it is a simplestring or a [[brackedted and space separated item]].
Makes sense. But what do you think about this approach; update the original + make a new post to (only) notify about the updated original. IMO it makes sense to try and save new readers of the thread from reading the erroneous stuff.
--<:-)
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 post to this group, send email to tiddl...@googlegroups.com.
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/3ba403ad-7e36-4635-af49-7fdeb0393d43%40googlegroups.com.