Hi Mat,

I'm sure this isn't what you want, but maybe this will help refine the 
question. If you want 3 different kinds of output, then you need 3 
different macros.

\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">>





On Friday, May 27, 2016 at 5:16:35 AM UTC-7, Mat wrote:
>
> <<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 ee
> 1b) bb       and    ee ee
> 1c) [[bb]]   and    [[ee ee]]
>
>
> Basic question... but I trip on this constantly and get mixed variants 
> (e.g bb but [[ee ee]], or a monolithic result that includes the whole 
> parameter argument).
>
> I think a comprehensive and comparative answer+examples on this belongs in 
> the docs. (But it's not a hypothetical question, I'd really appreciate the 
> answer).
>
> Anyone brave enough? I'm guessing there are only a handful who even *can* 
> answer it. Also partial answers are welcome, of course.
>
> [Edit The post was clarified after PMarios reply just below.]
>
>
> <:-)
>

-- 
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 post to this group, send email to tiddlywiki@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/783f72d7-8f3d-4efc-b338-5d858d040a4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to