Ok, so I have this homemade calculator that doesn’t understand something.
I want this when var1 > var2, var3 = 0, which works.
But when var2 is like = 5000 and var1 = 600, var3 STILL equals 0! But if var1 = 400 var3 is 4600. Does the first number ruin everything?
Why is this? here’s the code btw:
onChanged = function() {
if (var 2 > var_1) {
var_kvar = “0”;
}else {
var_3 = var_1 - var_2;
}
}
UPDATE: Ok I solved it, remove thread!!