how can I make a button redefine an object with a condition?
I want to program this:
If I press button +1 AND the new value of n is greater than e, then redefine e as e+1. On the other side: if I press button -1 AND the new value of n is less than a, then refefine a as a-1.
The button works well BUT... I don't know how to make the button keep working as it works now AND make this redefinition at the same time. My doubt is about the "if" condition, I don't know how to include it in the code. I've used if conditions in other contexts but I don't get the "grammar" for this one.
I provide a dropbox link in case you cannot open my attachment: https://www.dropbox.com/s/h...