Text this: Control using logic-based switching