Within a macro, I am trying to determine if a parameter is empty, and then 
set a variable based on knowing that it is empty.

I came across the Google Group post from a last month: Check the Blank 
Macro parameter 
<https://groups.google.com/forum/?hl=en#!topic/tiddlywiki/82N15sAnoPs/discussion>
\define mm(newField)
<$list filter="[<__newField__>] -[[]]">

Do my job!
</$list>
\end


<<mm test>>

So I tried using something based on that. Pasting the below into a new 
tiddler on tiddlywiki.com shows the issue:

\define test(tiddler)
<$set name="result" filter="[[$tiddler$]] -[[]]" value="Why is this 
variable set when the filter ''is not missing'' and ''it's empty''?">

The description of the ''value'' attribute of the `$set` widget says: The 
value to assign to the variable if the filter is missing or ''//not 
empty//''

tiddler=$tiddler$  

result=<<result>>

<$list filter="[[$tiddler$]] -[[]]" emptyMessage="See, the filter shows 
it's Empty">
</$list>
</$set>
\end

<<test>>


I don't understand where I've gone wrong. I'd appreciate some advice.
Thanks.


-- 
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/1867389e-59de-4b9e-b8e6-6ecd9212d92e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to