Lift control

Hi guys!!....i want to control a wheelchair lift with an arduino.
I plan on having limit switches at each position of travel. One for each end of the travel (horizontal and vertical)
I need the arduino to be able to know where the lift is in its trave. Any advice??...I'm not sure what the programming would be called so ts hard to Google. Thanks guys!!

It's called a "state machine".

Are people going to ride this thing? I would look to buy a commercial control box instead of building my own.

Also, do a site search of 'opener'. There have been many projects done for opening/closing doors, window blinds, etc. which have the same basic premise.

chriswheelz:
I need the arduino to be able to know where the lift is in its trave.

Does that mean you need to know where it is at any time, ie anywhere in the end-to-end range? Or just when it's at either end?