A square loop carrying a current
is placed near and coplaner with a long straight conductor
carrying a current
the net force on the loop will be -

The direction of current is conductor and
is same.
opposite to
and
cancels each other
Therefore, the net force on the loop.