Ok, I fear I wasn't quite clear about the idea and I don't even know 
whether any of those patterns make much sense the way I liked to play it 
through, but here it goes...

In a way, I wanted to make *a macro* agnostic to whether or not it is fed a 
variable or a parameter... don't ask me why, that was the ball being played 
:)

Something like (watch out, pseudo-syntax)...

\define macro(foo)
<$if $foo$>
do this
    <$else>
        <$if <<foo>>>
            do that
            <$else>
                otherwise this
            </$else>
        </$if>
    </$else>
</$if>
\end

...but that other usecase where a single variable or parameter has 
different values is a lot more interesting...

\define macro(foo)
<$if match="$foo$" value="bar">
do this
    <$else>
        <$if match="$foo$" value="baz">
            do that
            <$else>
                otherwise this
            </$else>
        </$if>
    </$else>
</$if>
\end

So, that's two entirely different games being played :)

Something tells me that that's almost like the reveal widget, except that 
reveal only works by checking against states, rather than checking a param 
or variable against something else.

Best wishes, Tobias.

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