@TrystanLea Thanks, Trystan, for confirming my find.
@nchaveiro And I am afraid it does not work either way, Chaveiro.
As a matter of fact, now that I think about it, the problem should be in the GOTO statement, as it explains what I saw while I was experimenting with it…
Or if you could think of a way to get some assignment to execute but only for values -12 to +12 ?
If you apply the correction highlighted by @nchaveiro that is what will happen, currently you have the inverse of that.
Can you expand on that? Is it the same output? Did you replace both ifs with if nots before retesting?
I suspect that for a input of 5 (or even -5) you should now get an output of 5.2, ie the result will always be abs(input) + 0.2. (abs only inverts negative values, it doesn’t set a specific value)
In which case you do not want the abs process you want reset to zero instead and then add 0.2. That way all values 0 +/-12 will be ignored, and instead a fixed 0.2 will be added to a fixed 0.
Each if will skip the next line when the condition is true.
When the value is 12, the processlist will pass on this lines: 1-3-6
When the value is -5 : 1-2-4-5-6
When the value is -13 : 1-2-3-6