how do I tell something to do something between variables,

like so:

if shpball is less than (variable) and greater than (variable) then.........

thanks.