Folks,

In the depth of a project I am working on, in part related to Systems 
Design Strategy - Centralised logic  
<https://groups.google.com/forum/#!topic/tiddlywiki/dQuaT6ABpFY>

I would like to test inside a macro definition if any parameter have being 
passed, psudo code below

\define mymacro() 
If no parameters passed
  Return what is here
end-if
If parameters passed
  Return what is here
end-if
\end


The reason is I want to use macros as a filter definition as in the 
subfilter<mymacro> but when one or more parameters are supplied return a 
different result.

This will allow the same macro definition to perform multiple functions 
since parameters can not be passed when used as filters, but when one or 
more parameters are passed it can use them.

I would like perhaps to be able to test if "params" is empty, where params 
is a string of all parameters passed to the macro from a macro call.

If this facility is not available I will request it.

Thanks in advance
Tony

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/fdc86283-628d-4762-8cac-31e8698ca1af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to