if !search_scan( sname) say char(7)" ERROR: sname does not exist, prtc... " wait end endifIt is tested whether the SCAN sname exists. If not, an error message is sent to the terminal preceded by the bell character. The program waits for a keystroke (wait without time specification) before the command file is finished (end).
if(x > 1000) then interrupt_scan = 1