clean up ENDIF conditional if object.value is undefined and is used in an ELSE block