MV Common Event running in code despite conditions not having been met

<Custom Conclude Effect>
if (target.result().hpDamage >= 1 && !target.result().hpDamage == 0) {
if (user.isActor()); {
$gameTemp.reserveCommonEvent(68);
};
if (user.isEnemy()); {
$gameTemp.reserveCommonEvent(69);
};
};
$gameTemp.reserveCommonEvent(70);
</Custom Conclude Effect>

common even 68 is silll being ran despite an enemy being the user
<Custom Conclude Effect>
if (target.result().hpDamage >= 1 && !target.result().hpDamage == 0) {
if (user.isActor()); {
$gameTemp.reserveCommonEvent(68);
};
if (user.isEnemy()); {
$gameTemp.reserveCommonEvent(69);
};
};
$gameTemp.reserveCommonEvent(70);
</Custom Conclude Effect>

common even 68 is silll being ran despite an enemy being the user
You have some errant ; in your code. Try this:
JavaScript:
if (target.result().hpDamage >= 1 && !target.result().hpDamage == 0) {
    if (user.isActor()) {
        $gameTemp.reserveCommonEvent(68);
    }
    if (user.isEnemy()) {
        $gameTemp.reserveCommonEvent(69);
    }
}
$gameTemp.reserveCommonEvent(70);
This

target.result().hpDamage >= 1 && !target.result().hpDamage == 0

is just weird.

If target.result().hpDamage is >= 1, then it is also not going to be 0, so the second half of that is completely unnecessary.

Try removing the ; after if (user.isActor()) and if (user.isEnemy())

Please state what plugin you are using. Do you also have a plugin to allow multiple common events to be queued? What is that? Otherwise I'd expect common event 70 to be run all the time and the other two not at all.

You could throw some logging in to see what's going on.
You have some errant ; in your code. Try this:
JavaScript:
if (target.result().hpDamage >= 1 && !target.result().hpDamage == 0) {
    if (user.isActor()) {
        $gameTemp.reserveCommonEvent(68);
    }
    if (user.isEnemy()) {
        $gameTemp.reserveCommonEvent(69);
    }
}
$gameTemp.reserveCommonEvent(70);
Thx u m8, this worked like a charm ^-^
This

target.result().hpDamage >= 1 && !target.result().hpDamage == 0

is just weird.

If target.result().hpDamage is >= 1, then it is also not going to be 0, so the second half of that is completely unnecessary.

Try removing the ; after if (user.isActor()) and if (user.isEnemy())

Please state what plugin you are using. Do you also have a plugin to allow multiple common events to be queued? What is that? Otherwise I'd expect common event 70 to be run all the time and the other two not at all.

You could throw some logging in to see what's going on.
Sorry, i should probably have said what i was trying to do in the first place. I was trying to replicate smt's press turn battle system to make so that when you hit an opponent the game checks if he attacker was an actor or enemy and uses common events to properly change variables so turns go down, but he second half is meant for area attacks to check if there was at least someone who blocked he attack, so that a different event can happen. Which i am yet to write.
but what I'm saying is that particular line is weird. If the first test is true, the second test HAS to be true. If the first part is false, the second test HAS to be false. You can remove the && and everything after it.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-running-in-code-despite-conditions-not-having-been-met.154150/