>>43823798Switching always happens first. Meaning you switch, send in the next Pokemon, and then your opponent attacks. This can be risky for the Pokemon you're sending in because it might have to take a hit.
But Teleport always goes last, meaning that your opponent attacks the teleporter and then the teleporter uses Teleport and the Pokemon you send in gets in for free without taking a hit.