Here's a demonstration of the difference:

1) Create three tiddlers named A, B, and C, with text content "this is A", 
"this is B" and "this is C", respectively.

2) Create a Test tiddler containing:
<$vars F="[get[text]match[this is B]]">

subfilter result 1 is: <$text text={{{ [enlist[A B C]subfilter<F>] }}} 
/><br>

<$list filter="[enlist[A B C]get[text]match[this is B]]" variable="result">
   subfilter result 2 is: <<result>>
</$list>

filter result 1 is: <$text text={{{ [enlist[A B C]filter<F>] }}} /><br>

<$list filter="[enlist[A B C]]">
   <$list filter="[<currentTiddler>get[text]match[this is 
B]then<currentTiddler>]" variable="result">
      filter result 2: is <<result>>
   </$list>
</$list>

3) The output will be:
*subfilter result 1 is: this is B*

*subfilter result 2 is: this is B*

*filter result 1 is: B*

*filter result 2: is B*

The difference:

   - *subfilter* applies filter F to each input title and returns the TEXT 
   that matches "this is B", and is *equivalent to inserting filter F into 
   a larger filter expression*
   - *filter *applies filter F to each input title and returns the TITLE 
   whose text matches "this is B" and is *equivalent to writing nested 
   filters*

hope this helps...

-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9039613a-560e-4466-a67d-34d1457fb6acn%40googlegroups.com.

Reply via email to