Controlling a stepper with a pot

I want to map a stepper to a pot. However, i'm having a little trouble figuring out where to start.

First, decide exactly what you want the stepper to do, when you move the pot.