if (NSMD0787.raw == 3) then return(0); else return(1); endif; # 3: failed, else OK