x=findgen(100) y=0.05*x^2 plot,x,y wait,10 g=10 if g gt 5 then exit z=sin(x/10) plot,x,z wait,10 exit