cmq nelo script ci vuole oltre if anche un else per dire altrimenti e nel tuo caso altrimenti stop();