Three-state molecular shuttles operated using acid/base stimuli with distinct outputs.