So, I've been going through cutting down on unneeded code to tidy up things a bit and I come across a huge bulk of code I've been using to check if a certain variable is within the range of certain numbers. I had a feeling there was a much easier way of going about it so I thought I'd ask around here.
Is there any other way to check if a variable is between two values (variable A is greater than -2 and less than 2) other than this:
if 'A' > -2 && 'A' < 2 {"Action"}
Just wondering if anyone else knows of another way to go about this.