Change if to
exit when c1%notfound