I just discovered something that I think is undocumented but could be
extremely useful! When arguments are passed to the macrocall widget, it
first processes the param substitutions of the macro, AND THEN processes
the variable substitutions. This means that you can pass in a variable
substitution as a paramater, like this:

\define gt(a, b) $a$ $b$ +[nsort[]last[]remove[$b$]]
<$list filter=<<gt "$(window-width)$" "512">> variable="temp">

</$list>

In case you're curious about the filter, it sorts the two arguments and if
the second one is larger the list will not output a DOM element.

Enjoy!
Arlen

-- 
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/CAJ1vdSSO1Jz9uZvgSXzJBgSnsdLbfEB-F6t8YxK07RfcB6iT%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to