Event using variable comparison?

I was thinking about my next game's mechanics and thought of a sort of karma system that affects the ending of the game. That being said, I was going to incorporate two variables: one for "positive karma" and one for "negative karma". Every decision you make increases one of these variables. My question is how do I set the event up to compare them at the end of the game on the last event?
Example:
To trigger ending 1, the player's"positive karma"points has to be at least 6 higher than "negative karma".
To trigger ending 2, the player's "negative karma" points has to be at least 6 higher than "positive karma".
To trigger ending 3, the difference between both variables has to be 5 or less (ie: positive has 4 more than negative, not enough to trigger ending 1).
Mathematics
Just use control variable command to calculate what you want and conditional branch to check the results.
Mathematics
Just use control variable command to calculate what you want and conditional branch to check the results.
Ok, so that takes care of the comparison- somewhat...
Compare.png

But I need the comparison with in a range- this only does that comparison if one is outright right higher than the other...
Use a third variable: store the required threshold (e.g. "negative plus six" or "positive less negative") and compare against that. =)
As I said (and the poster above pointer out as well) you need to calculate the desired difference before the conditional branch.

Follow the link to the starting point in my signature, it contains links to a lot of tutorials.
In this case you need the variables guide to learn how to use variables.
In this case you need the variables guide to learn how to use variables.
I've already done that tutorial...

Gods, why are variables so much harder to understand in MV than they were in RPG Maker II and RPG Maker Fes?!

EDIT: @Andar @caethyril Ugh, this is making my brain hurt- I can get Ending 1 text and Ending 2 text to show, but not Ending 3 text...Concept-Karma.png
So we call these variables
a = positive karma
b = negative karma
c = a - b

Code:
if c >= 6
  ending 1
else if c <= -6
  ending 2
else (without condition at all)
  ending 3
end

Edit: fixed the comparison.
Or if variable in MV does not allow you to put negative variable

a = positive karma
b = negative karma
c = 6 + a - b

Code:
if c >= 12
  ending 1
else if c <= 6
  ending 2
else (without condition at all)
  ending 3
end
@TheoAllen I'll try that when I get back home.

EDIT: The first one did the trick since MV can use negative numbers for variables. Many thanks- will make sure to write this down in my next game's sketchbook for future reference!

Original thread: https://forums.rpgmakerweb.com/threads/event-using-variable-comparison.92460/