Hi

Try adding the filter as a separate run:

<$list filter="[tag[empire_event]] +[faction[$faction$]sort[year]]">
<$set name=theyear value={{!!year}}>
<$list filter="[tag[species]] +[planet{!!planet}]" >

regards

On Sunday, 3 January 2016 04:16:15 UTC+2, David Allen wrote:
>
> Hi. I'm having trouble with one of my macros, and I'm not sure why.
>
> Here is the code:
> \define empire_species(faction)
> !!Species
>
> <$list filter="[tag[empire_event]faction[$faction$]sort[year]]">
> <$set name=theyear value={{!!year}}>
> <$list filter="[tag[species]planet{!!planet}]" >
> *<$link to=<<currentTiddler>> >
> <<currentTiddler>>
>  </$link>(<<theyear>>)
>
> </$list>
> </$set>
> </$list>
> \end
>
> This is supposed to get a list of tiddlers tagged empire_event whose 
> faction field matches the input, then get a list of species whose planet 
> field matches the planet field of the empire event.  What it's actually 
> doing is grabbing a list of species that don't have a planet field defined 
> yet and appending the desired result of this macro to that list.
>
> Does anyone know what I need to change to keep this from grabbing species 
> that don't have the planet field?
>

-- 
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/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to