I'm not sure what's wrong with this code :
declare
l_return boolean ;
begin
if 1 =1 then l_return := TRUE ;
end if;
RETURN l_return ;
end;
as part of button condition = "pl/sql function returning boolean" ....
It produces:
ORA-06550: line 9, column 1:
PLS-00372: In a procedure, RETURN statement cannot contain an expression
ORA-06550: line 9, column 1:
PL/SQL: Statement ignored
7. end;