Avoid too many Exit statements in Functions (FORTRAN) | CAST Appmarq