Create two tiddlers in tiddlywiki.com titled *Aa *and *Bb*

Now create a tiddler with below code inside it. This code compares the 
modified date of two tiddlers and shows yes
if Aa is newer than Bb and vice versa!

\define gt() 
$(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]]
\end

\define is-it-newer(TiddlerA, TiddlerB)
<$set name=TidA  tiddler=<<__TiddlerA__>> field="modified">
<$set name=TidB  tiddler=<<__TiddlerB__>> field="modified">
<$list filter=<<gt>> emptyMessage="no">
yes
</$list>
</$set>
</$set>
\end

> <<is-it-newer Aa Bb>>

> <$wikify text=<<is-it-newer Aa Bb>>  name=result>
<<result>>
</$wikify>

You will get different results

yes
no

Why the wikify shows the wrong result?

--Mohammad

-- 
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/fc215b27-126d-4bde-a942-30daa70acd26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to