numerical integration of IF() function



How do I tell maxima that I want a numerical answer to this?

-------------begin----------------

pulse: IF(x<0.1,1,0)$

quad_qags(pulse,x,0,1);

quad_qags(IF(x<0.1,1,0),x,0,1,epsrel=1.0*10^-8,epsabs=0.0,limit=200)

-----------end--------------------