Swedenborg describes temptation as an assault or an attack on what we spiritually have come to love. This is a divine "permission," or something bad that the Lord allows because good can result, the purpose of which is for us to be strengthened in our spiritual life.
Not realizing this, many of us might wish for a life without temptation, thinking that would make it so easy to be good! According to Swedenborg, however, a life without temptation would actually guarantee the opposite: it would leave us mired in evil and bound for hell. In fact, his theology says that temptation is the only way we can root out our evils and let the Lord into our hearts, so we should recognize it as an opportunity even if we can’t exactly embrace it as a good time.
The reasoning behind this starts with the idea that we are what we love; that what we care about actually determines our character and defines our identity. That might sound odd at first, but consider: if you say that you “know” someone, you’re really talking about an awareness of what they love, not an awareness of all their thoughts. What we love is who we are.
And from the beginning of our lives, what we love is highly self-centered. Much as we love babies for their innocence, they can’t even form the concept of putting someone else’s needs first. And while children and teenagers learn to be kind and considerate, that kindness is more in their external levels - inside they are busy with the work of becoming themselves, and that remains a self-involved process.
Somewhere between there and the end of life, we’re called on to change completely, setting our self-interest aside and replacing it with a genuine love for others and love for the Lord. That, however, involves uprooting the things we love most. And since those loves form our identity, that’s really hard, and has to be done in many, many steps.
The key element working for us is the mind: from our knowledge and thoughts we can know what’s right even when we don’t want it. In fact, from our knowledge and thoughts we can actually want to be better people, while in our hearts we still want to wallow in those attractive evils.
Elevating the mind this way creates a conflict between “the person I want to become” and “the person I am,” between “what I want” and “what I want to want” (sort of like, “I want to be craving celery, but I’m really craving cookies”). And since the hells want to keep you enslaved by cookies, they go on the attack, using both blunt desire and twisted logic and argument to try to break you down.
Key to the hells’ attack is the fact that what we want forms our identity; giving up each evil thing we crave feels like sacrificing a little part of who we are. But the Lord’s promise is this: If we actually do it, stick through it and let that piece of ourselves be sacrificed, He will eventually replace it with the desire for something good, pure and loving.
An interesting twist is that if we tried to do this all at once, we actually would lose our identity, destroying every love we have at once. This may sound odd - wouldn’t we want such a transformation - but imagine someone you think of as thoroughly evil: Hitler, perhaps, or Caligula, or Dracula. Then imagine removing, in one swipe, all their evil desires. Would we even recognize them anymore? Would they be themselves? Would they be anything?
On the other hand, imagine a child’s stuffed bear, loved so much that it loses an arm. You replace the arm, and then it is loved so much that it loses the other arm. And then the legs, and the head, all replaced one at a time. Finally the body wears through and you replace that too. So what you have is the same bear, but with every part replaced. That’s kind of how the Lord works on us: through a lifelong series of temptations we can root out and replace one little bit at a time until we emerge all-new and ready for heaven while still being who we are.
It’s clear, then, how crucial a role temptation plays. If we never had that conflict between what we want to be in our minds and what we are in our hearts, the evil would just stay in our hearts untouched. We have to take on those battles, one by one over a lifetime, to become the people the Lord wishes us to be.