If it's a Step Switch, in one position when you close the door, the steps retract (road position). In the other position, the steps stay out (park position). May or may not, also control step lights.
Also, if the switch is in park position, there is a safety over-ride that retracts the step if...