But unlike a permanent magnet, in an electromagnet you can alter the orientation of the poles.
(you; can alter; the orientation of the poles; L:in an electromagnet)
you
can alter
the orientation of the poles L:in an electromagnet