Sub topic 11
Step 5: Tie the new routine to the cue with an if-then plan
By this step you have a replacement routine that delivers the same reward as the old habit. A routine on paper does not yet run when the cue appears. This chapter covers how to connect the two with an if-then plan, which researchers call an implementation intention.
Prerequisites assumed: you know the cue, routine, reward loop. You have named the old routine (Step 1), isolated its cue (Step 2), tested which reward you are after (Step 3), and chosen a replacement routine (Step 4). The code example needs only Python 3.7 or later.
Why a good intention is not enough
A goal intention has the form "I intend to do X." An implementation intention has the form "When situation Y happens, I will do X." The second form changes what your mind has to do at the critical moment.
With a goal intention, you must notice the moment, remember the goal, decide what to do, and then do it. All of that happens while the old habit is already pulling at you. With an if-then plan, you have made the decision ahead of time. The cue itself becomes the trigger for the new routine.
Research on implementation intentions, most associated with the psychologist Peter Gollwitzer, has generally found that they help people follow through on their goals. The effect is usually moderate, not dramatic. It tends to be strongest when the goal is already something you want and the obstacle is remembering to act or seizing the moment.
This fits the swap approach well. The old habit already fires reliably on a specific cue. You are borrowing that reliability for the new routine.
The anatomy of a good if-then plan
A useful plan has three parts.
- A specific cue (the "if"). It must be something you can notice. "When I feel stressed" is vague. "When I feel restless at 3 pm" is something you can detect.
- A specific action (the "then"). It must be a behavior you can start without more decisions. "I will be healthier" is not an action. "I will walk around the block" is.
- A link to the reward. In a swap, the plan should say what need the new routine serves. This reminds you that you are not giving something up. You are getting the same thing another way.
The plan is built from the results of Steps 1 to 4. The cue comes from Step 2, the new routine from Step 4, and the reward from Step 3.
Writing the plan as data
A small data structure keeps the cue and reward fixed and changes only the routine. It then produces the sentence you will use.
from dataclasses import dataclass
@dataclass
class HabitSwap:
cue: str
old_routine: str
new_routine: str
reward: str
def if_then(self) -> str:
return (
f"When {self.cue}, I will {self.new_routine} "
f"instead of {self.old_routine}, so I still get {self.reward}."
)
swap = HabitSwap(
cue="I feel restless at 3 pm",
old_routine="buy a snack from the vending machine",
new_routine="walk around the block and chat with a colleague",
reward="a break and some social contact",
)
print(swap.if_then())Running this prints:
When I feel restless at 3 pm, I will walk around the block and chat with a colleague instead of buy a snack from the vending machine, so I still get a break and some social contact.Notice the grammar slip: "instead of buy." The template expects a gerund, such as "buying a snack." Fix this by writing the old routine as "buying a snack from the vending machine". The tool is only a template. Read the output aloud and edit it until it sounds natural, because a plan you will not say is a plan you will not use.
Making the cue concrete
The most common failure of an if-then plan is a cue that is too fuzzy to notice. Compare these pairs.
| Weak cue | Stronger cue |
|---|---|
| When I get stressed | When my shoulders tighten and I open the email inbox for the third time |
| When I get home | When I put my keys in the bowl by the door |
| In the afternoon | When the 3 pm calendar reminder appears |
| When I feel tempted | When I walk past the vending machine on the way back from the meeting room |
The stronger cues are tied to a time, a place, a physical sensation, or a preceding action. These are the cue categories you looked at earlier: time, location, emotional state, other people, and the immediately preceding action. Pick the category that was most reliable in your Step 2 notes.
If your cue was an emotional state, add an observable marker. Feelings are hard to catch in the moment. A marker, such as a physical sign or a particular thought, gives you something to detect.
Making the action small and ready
The "then" part should be something you can begin within a few seconds. Two rules help.
- Start with a physical movement. "Stand up and put on my jacket" is a better first step than "go for a walk," because the first movement is the part that breaks the old pattern.
- Remove any decision. If the plan says "walk or chat or drink water," you will have to choose while the craving is active. Pick one. You can keep a backup plan (see below), but the primary plan should be a single action.
Keep the action proportional to the time and energy you will have at the cue. A ten-minute walk is a reasonable swap for a 3 pm slump. It is not a reasonable swap if the cue happens during a meeting.
Keeping the reward in the sentence
Many guides on implementation intentions stop at "when X, I will Y." In a swap, add the reward clause. There are two reasons.
First, it keeps the replacement honest. If the new routine does not deliver the reward, you will drift back to the old one. Stating the reward in the plan reminds you to check whether it is working.
Second, it changes how the plan feels. "Instead of snacking, I will walk" feels like a loss. "I will walk and still get my break and some company" feels like a trade.
The plan as a flow
The diagram shows what happens at the moment the cue appears, with and without a plan.
The plan removes the middle steps. That is where the old habit usually wins.
Preparing for obstacles: the second plan
Research on this technique often pairs the basic plan with a plan for the obstacle most likely to block it. This is sometimes called mental contrasting with implementation intentions. You imagine the wish, imagine the main obstacle, and then write an if-then plan for that obstacle.
For the 3 pm example, the likely obstacles are rain, a deadline, and a colleague who is not around. A backup might read:
- When it is raining at 3 pm, I will walk the indoor corridor on the second floor.
- When I cannot leave my desk, I will call a friend for five minutes.
Write at most two or three backup plans. More than that creates the decision problem you were trying to remove.
Rehearsing the plan
A plan you wrote once and never looked at will not help. Three habits make it stick.
- Say it aloud or write it by hand. The point is to connect the exact cue wording to the action.
- Visualize the cue. Spend about thirty seconds picturing the moment: where you are, what you see, how your body feels, and then the first movement of the new routine.
- Put the plan where the cue happens. A note on your monitor or a calendar reminder at 3 pm works as a prompt. Treat the prompt as scaffolding. It can go once the new routine fires on its own.
Common errors
- The cue is not the real cue. If you skipped the observation work in Step 2, you may have attached the plan to the wrong trigger. If the plan never fires, go back and re-check the cue.
- The new routine does not deliver the reward. If you follow the plan but the craving remains, return to the reward experiments in Step 3. You may have guessed the wrong reward.
- Too many plans at once. Each new plan competes for attention. Start with one habit swap and add another only after the first is stable.
- A plan that is a hidden ban. "When I want a snack, I will not eat it" is a negative plan. It leaves the cue with nothing to do. Always name what you will do.
- Expecting the plan to supply motivation. An if-then plan helps you act on a goal you already hold. It does not create the goal.
Putting it together
For the habit you are changing, complete these steps now.
- Copy the cue from your Step 2 notes and add an observable marker if it is an emotional state.
- Copy the replacement routine from Step 4 and reduce it to one action you can begin in seconds.
- Add the reward from Step 3 to the sentence.
- Write one or two backup plans for the most likely obstacles.
- Say the main plan aloud, picture the cue, and put a prompt where the cue occurs.
In the next chapter you will look at adjusting the environment so that the new routine takes less effort than the old one.
Exercise
A colleague writes this plan for swapping an evening habit: "When I feel stressed, I will try to relax more instead of scrolling on my phone." Name two problems with it and rewrite it as a better if-then plan. Assume the cue is sitting on the sofa after dinner, the reward is mental wind-down, and a suitable replacement is a short stretching routine.
Show answer
Problems: (1) The cue "when I feel stressed" is vague and hard to notice. (2) The action "relax more" is not a specific behavior, so it needs a decision at the moment of the craving. The plan also omits the reward, and "try to" signals weak commitment. Better version: "When I sit down on the sofa after dinner and reach for my phone, I will do a five-minute stretching routine on the mat next to the sofa instead of scrolling, so I still get a chance to wind down." Any rewrite that names an observable cue, one concrete action, and the reward is acceptable.
Exercise
You follow your if-then plan for a week, and you always start the new routine at the cue. Each time, though, the old craving is still there afterwards. Which earlier step should you revisit, and why?
Show answer
Revisit Step 3, the reward experiments. The plan is working as a trigger, since the new routine starts reliably, but the routine is not delivering the reward the old habit provided. The most likely cause is that you identified the wrong craving, for example treating hunger as the reward when the real reward was social contact. Run the craving test again with different routines against the same cue.