When one of the magnets is rotated so that now two north poles are facing each other or two south poles, then the internal currents are anti-parallel and the two magnets repel each other.
(one of the magnets; is rotated; so that now two north poles are facing each other or two south poles, then the internal currents are anti-parallel and the two magnets repel each other) (two north poles; are facing; each other; T:now) (the internal currents; are; anti-parallel; T:then) (the two magnets; repel; each other)
one of the magnets two north poles the internal currents the two magnets
is rotated are facing are repel
so that now two north poles are facing each other or two south poles, then the internal currents are anti-parallel and the two magnets repel each other
each other T:now
anti-parallel T:then
each other