Sorry, I didn't really explain it properly.
I need to check if var2 is between (var2-var1)/2 and (var3-var2)/2 etc.