- Code: Select all
if (value >= -10 && value <= 10)
Where 'value' is the changing value and - 10 and 10 are the limits which I want to check it being in between of.
I'm trying to find a shorter way to write it but I can't come up with anything.
I think there must be some easy solution which I just can't figure out right now.
Thanks in advance! =)