halfpi=pi/2;

if (halfpi>1) && (halfpi<2) && ~(halfpi==1.5)
    disp('pi/2 is between 1 and 2 and not 1.5')
end