Hi again,
I tried to do something like this
\define intersect-item(filter, item)
<$list filter="[<__item__>] -[subfilter<__filter__>]" variable="result" emptyMessage=<<__item__>> >
</$list>
\end
\define intersect(flt1, flt2)
<$list filter=<<__flt2__>> variable=item >
<$macrocall $name="intersect-item" filter=<<__flt1__>> item=<<item>> />
</$list>
\end
<$vars
x="7 8 -1 -3 9 11"
y= "1 2 3 4 5 6 7 8 9"
>
<$macrocall $name=intersect
flt1="[enlist<x>]"
flt2="[enlist<y>]"
/>
</$vars>
The procedure is, I check every item in filter2 output to see if it is in filter1 output.
If so, I display it, if not, I ignore it!
I am not sure if the code is optimize and according to TW rules and standard.
Application: I have two set of tiddlers, for example those have property1 and those have property2. I want to show
tiddlers have both properties!
Give me your comments.