Parallel Lines
Two lines are parallel if and only if they have the same slope, or if they are both vertical.
Perpendicular Lines
Two lines are perpendicular if and only if the product if their slopes is -1, or if one is vertical and the other horizontal.