iMtG Server: Gathering

Gathering Forums => Help for iMtG => Topic started by: reezel on October 30, 2012, 10:02:50 AM

Title: Filter Question
Post by: reezel on October 30, 2012, 10:02:50 AM
So I wasn't sure if this was something that is possible in the current feature set but I figured I'd ask. I would like to be able to write a filter that returns to me all of the cards for a given set that are not in My Precious. I know that Needed seems like the answer to this but it actually isn't. I set my needed up with a set for 4x Common, 4x Uncommon, 2 x Rare, and 1x Mythic Rare. I currently am looking for a filter to tell me which cards I don't own any of, which my needed isn't really showing me. Is there anyway with the advance predicate to make this work? Thanks.
Title: Re: Filter Question
Post by: Piotr on October 30, 2012, 01:28:48 PM
Nah, should be easier. I'll try to post how-to tomorrow.
Title: Re: Filter Question
Post by: reezel on November 01, 2012, 11:45:39 AM
Any thoughts on this?
Title: Re: Filter Question
Post by: Piotr on November 01, 2012, 11:52:00 AM
Ah, yes. "Not In Collection" Bookmark is probably what you need. Collection is defined as My Prss + Trade binders, so you can modify the Advanced Predicate by removing "or $x.binder.type' = 1", to make it show everything not in your My Prsss binders.
Title: Re: Filter Question
Post by: reezel on November 01, 2012, 09:41:28 PM
So I played around with it a little and have another question. The "@count" variable seems to only apply to how many binders it is in. I was tooling around and hoping to get up a query that tells me if I have less than 4 of a given card. Is there another way to do that?
Title: Re: Filter Question
Post by: Piotr on November 02, 2012, 05:08:34 AM
Try SUBQUERY( binderentries, $x, $x.binder.type = 0 ).@count = 0 or subquery( binderentries, $x, $x.binder.type = 0 and $x.count < 4 ).@count > 0
But this one will miss the ones you have split across multiple binders. You could try playing with @sum to clever all, but I'm not sure if its possible, please post here if you succeed.