Oracle 9i :ERROR :Function compilation error PLS-00103:

LINE/COL ERROR-------- -----------------------------------------------------------------7/5 PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: . ( * @ % & - + / at mod rem then and or || The symbol "then was inserted before "RETURN" to continue.

9/5 PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: . ( * @ % & - + / at mod rem then and or || The symbol "then was inserted before "RETURN" to continue.