Why "if–then" is the armor your habits need
The backup plan your subconscious already understands.
Yesterday I wrote about the magic of what, where, and when statements—tiny formulas that trick your brain into making habits automatic.
They’re backed by science, and they work like magic.
But what happens when life doesn’t play along? That’s where the if–then shield comes in.
This is also solidly backed by science, as you’ll see below.
But if you like a woo-woo analogy as much as I do, picture the protective circle a magician draws to keep out chaos and hostile energy.
The what–where–when spell puts you on the offensive, striking first with intention. The if–then shield is your defense, holding the line when life strikes back.
Together, you’re covered—offense and defense—for the war of building habits.
Beyond the perfect plan
I first came across this in Mike Matthews’ The Little Book of Workout Motivation.
He pointed out something we all feel but struggle to put into words: it’s one thing to plan for success, it’s another to prepare for chaos.
A what–where–when statement looks like this:
“On Monday at 7 a.m., I’ll drink an espresso in my kitchen and then go to the gym.”
Great. But what if you didn’t sleep well? What if a meeting gets dropped on your calendar? What if life throws you sideways?
Enter the companion:
If I don’t get enough sleep, then I’ll still get up at 7 a.m. and do my workout.
If I miss a workout, then I’ll do it after work.
If I can’t go after work, then I’ll do it Saturday morning at 9.
It looks simple, but something deep is happening here.
Contingency as subconscious programming
Psychologists call this “mental contrasting.” You run your goal through a stress test by naming the barriers in advance and pairing each with a response.
It’s like installing alternate routes in your subconscious. When the roadblocks show up, you don’t waste energy deciding. The path is already laid.
The research is clear: people who combine what–where–when with if–then don’t just act more often. They also stay motivated longer because the setbacks don’t feel fatal. They’re just detours.
The double edge
Here’s the twist. Sometimes, this process lowers motivation. And that’s a good thing.
If you map out every obstacle and realize your goal is absurd—like going from zero piano skills to playing Liszt in a few months—your subconscious won’t buy it. The spell breaks.
But that clarity is priceless. Either you surge forward with greater conviction, or you pivot to a goal that’s worth your energy. Both are wins.
If you’d like to dive deeper into mental contrasting, check out Gabrielle Oettingen’s seminal book Rethinking Positive Thinking.
The real magic
When you combine the two formulas, something shifts.
What–where–when locks in your daily structure.
If–then inoculates you against chaos.
One plants the seed. The other protects it from the storm.
And together, they free you from the endless negotiation with yourself that kills so many dreams.
Call it psychology. Call it magic.
The effect is the same: precision overcomes willpower.
So write your plan. Then write your ifs and thens.
Don’t just hope for momentum. Cast it.



This is a brilliant thought, the marriage of structure and adaptability. Most people focus on discipline as brute force, but what you describe feels like strategic self-compassion: anticipating chaos instead of resenting it. It’s a reminder that mastery isn’t rigidity, it’s resilience. Do you find the ‘if–then’ mindset spilling into other areas of life beyond habits?
🙏🙏