An anyon condenses at a boundary when its string operator may terminate there without leaving an excitation, so the boundary can absorb or emit that anyon.
An electric boundary of the surface code condenses electric anyons, while a magnetic boundary condenses magnetic anyons. A local boundary Pauli can create a single condensed excitation because its string may end at that boundary.