How do I know if I dodged or got hit?

I'm currently making a new game (my first RMMV game).
I used to work with RM2k, so I have a rough understanding of how to use RMMV.

For my tutorial, I have a forced battle. The first thing that happens in the battle, is my character gets attacked by an enemy.
The event basically goes like this:

MC: "Who's that?"
- Enemy attacks -
MC: "Ouch!"

During playtesting I noticed that my MC sometimes dodges that first attack.
It's weird that he still says "ouch" even though the enemy missed, so I wanted to make a conditional branch:

IF MC is hit or MC HP < 100%
MC: "Ouch"
ELSE
MC: "Woah, that was dangerous!"

But I can't find out how to do it.

Any ideas?
I think what I'd do here is store the MC's initial HP in a variable, then compare it with current HP after the attack, something like this:

Control Variables #1 > Set > Game Data > Actor > HP
MC: "Who's that?"
- Enemy attacks -
Control Variables #1 > Subtract > Game Data > Actor > HP
If Variable #1 > 0
MC: "Ouch!"
Else
MC: "Woah!"

Alternatively: the skill formula is only evaluated when the skill hits. This means you can track hits by setting a variable in the skill formula, e.g.:
Code:
v[1] = 0; damage formula goes here
This means if you set variable #1 to, say, 1 just before the attack, then find it is zero after, the MC must have been hit. =)
Thanks, I didn't think of that, and the part about formula evaluation is really good to know!
You're welcome! Happy RPG Making! ^_^

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-know-if-i-dodged-or-got-hit.91769/