When two infinitely long parallel conductors carrying current I1 and I2 are placed a distance r apart, then force on the unit length of a conductor due to the other conductor is given by F=4πμ0⋅r2I1I2
The force is attractive, if current in two conductors is in same direction; and repulsive, if currents are in opposite directions.