Pokémon Box Link: Difference between revisions

m
(→‎Search queries: adding order of operations)
Line 203: Line 203:
The search function also uses a set of operators for more complex queries. The order of operations in which they are evaluated are in the same order as listed:
The search function also uses a set of operators for more complex queries. The order of operations in which they are evaluated are in the same order as listed:
* <code>!</code> — complement of the condition (e.g. <code>!water</code> returns all Pokémon that are not Water-type)
* <code>!</code> — complement of the condition (e.g. <code>!water</code> returns all Pokémon that are not Water-type)
* <code>&</code>, <code>|</code> — intersection of conditions (e.g. <code>shiny&swinub</code> returns all Shiny Swinub)
* <code>,</code>, <code>:</code>, <code>;</code> — union of conditions (e.g. <code>fire,evolve</code> returns all Pokémon that are Fire-type or can evolve)
* <code>,</code>, <code>:</code>, <code>;</code> — union of conditions (e.g. <code>fire,evolve</code> returns all Pokémon that are Fire-type or can evolve)
* <code>&</code>, <code>|</code> — intersection of conditions (e.g. <code>shiny&swinub</code> returns all Shiny Swinub)


By the order of operations, the query <code>!dragon&@ice,@fairy</code> would return all non-Dragon-type Pokémon that know either an Ice-type or a Fairy-type move.
By the order of operations, the query <code>!dragon&@ice,@fairy</code> would return all non-Dragon-type Pokémon that know either an Ice-type or a Fairy-type move.