Now, if switch is on, use the on switch (again) to toggle the switch, leaving the outlet on.  Instructions in comment at top of file for each scenario (as they can be difficult to articulate)