I don't understand it.
I think what he wants is something like:
//if enemy is moving left, then make it move right
if enemy 1 direction = left
{
enemy 1 = right
}
//if enemy is moving right, then make it move left
if enemy 1 direction = right
{
enemy 1 = left
}