I've always used "under the right conditions", but a quick Google search for "in the right conditions" seems to hit mostly British articles. Probably just an American/British difference for the same phrase.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.