Hi There are no 'faction[]' or 'planet[]' filter operators -- looks to me, that you should be using the 'field[]' operator:
<$list filter="[tag[empire_event]field:faction[$faction$]sort[year]]"> <$set name=theyear value={{!!year}}> <$list filter="[tag[species]field: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/8e16670f-801b-4a7a-ba6a-59792b970a95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.