if variable is between 2 number

 

Hi

Currently I'm using this code :

if ( (10<x) && (x<20) )


There is another way without && ?

 

Like this maybe?

if ( MathAbs(x-15) < 5 )