Two non-vertical lines are parallel if and only if their slopes are equal.
Two non-vertical lines are perpendicular if and only if the product of their slopes is 1.