First problem first including pseudo code:

\define macro(foo)
<!-- if $foo$ ; begin --><$reveal type="nomatch" state=" non existing 
tiddlre " text="$foo$">
    do this
<!-- end --></$reveal>
<!-- else ; begin --><$reveal type="match" state=" non existing tiddlre " 
text="$foo$">
    <!-- if <<foo>> ; begin --><$reveal type="nomatch" state=" non existing 
tiddlre " text="$(foo)$">
        do that
    <!-- end --></$reveal>
    <!-- else ; begin --><$reveal type="match" state=" non existing tiddlre 
" text="$(foo)$">
        otherwise this
    <!-- end --></$reveal>
<!-- end --></$reveal>
\end

! No Param, No Var

<<macro>>

! Param, No Var

<<macro "foo param">>

<$set name="foo" value="foo var">

! No Param, Var

<<macro>>

! Param, Var

<<macro "foo param">>



Note: Despite the fact that I used blanks as first and las character in the 
stet tiddler's name, this does not keep help the " non existing tiddler "  
from being created as the state tiddler's name gets trimmed by tiddlywiki. 
So the whole logic will fail as soon as you have a non-empty tiddler called 
"non existing tiddler".

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to