Sort:  

I did a post on equation of horizontal and vertical lines. Vertical lines have undefined slope or infinite slope. If X2 - X1 = 0 that means line is vertical and it's equation will be X = Constant (that constant will be the x-coordinate of the given points)