The user defined function or method has a return statement but it does not return a value. User defined functions always return a value, as do non-void methods. If this RETURN statement is executed, it will result in the function evaluating to the unknown value.
FUNCTION f1 RETURNS CHARACTER (ipCondition AS CHARACTER): IF (ipCondition EQ ?) THEN RETURN. // Will return unknown value IF (ipCondition BEGINS 'A') THEN RETURN 'Something'. ELSE RETURN 'Something different'. END FUNCTION.
FUNCTION f1 RETURNS CHARACTER (ipCondition AS CHARACTER): IF (ipCondition EQ ?) THEN RETURN ''. // Usually better to return an empty string IF (ipCondition BEGINS 'A') THEN RETURN 'Something'. ELSE RETURN 'Something different'. END FUNCTION.