GamePress

Logical Operators Precedence in Search Bar: OR before AND ?

(For those who don't know the "advanced" search techniques, here's a summary: https://www.reddit.com/r/TheSilphRoad/comments/6znldb/new_update_version_0750/).

I've done some experiments and found this.
If you input "Grass & Poison, Psychic", it will be interpreted as ((Grass AND Poison) OR (Grass AND Psychic)). Therefore, the results will include (Grass AND Poison) type Pokemon like Venasaur and (Grass AND Psychic) type Pokemon like Eggy. Not (Grass AND Poison) types and all Psychic types.
Why? Isn't the convention of logical operator precedence AND before OR?

Asked by bioweapon7 years 7 months ago
Report

Answers

by razvan 7 years 7 months ago

What do you get if you search for Psychic, Grass & Poison? (iPhone, update not yet available, cannot try myself)

Up
0
Down

It will get the same result.
BTw this works with 0.73, without update. I'm iPhone as well

Up
0
Down

Just tested it :). I guess "," automatically implies ( ) in Niantic case.

Up
0
Down

But the latest version adds the ability to use 'defender' and it will show everything you have currently defending a gym.
...best one yet.

Up
0
Down

nice. they should also let you search part of the mons name and not just the first characters as I have my moveset SEs and NVEs in there.

Up
0
Down