You can
put this solution on YOUR website!You seem to be talking about slopes.But remember, parallel lines have identical slopes.
Perpendicular lines, on the other hand, have slopes the are the negative reciprocal (or, as you put it "...use opposite sign and flip the number upside down...") of each other.
So, the answer is: Do it when you have perpendicular lines, not when you have parallel lines