the if statements in my code appear not to be working
when run through, this prints
other = DEAD
other = DEAD
first else
to the dbms output window
so even though greportinfo.other = 'DEAD',
(not greportinfo.other = '') is evaluated as false when it is clearly true.
what am I doing wrong?
Jon
One day I will find a signature worthy of this space. That day has not yet come.
Code:
dbms_output.put_line('other = '||greportinfo.Other);
If not greportinfo.Other = '' then
vsql:= vsql||'where portfoliotype = '||greportinfo.Other ;
dbms_output.put_line('first if');
if not greportinfo.Owner = '' then
vsql:= vsql||' and nominee = '|| greportinfo.Owner;
end if;
else
dbms_output.put_line('other = '||greportinfo.Other);
dbms_output.put_line('first else');
if not greportinfo.Owner = '' then
vsql:= vsql||'where nominee = '||greportinfo.Owner ;
end if;
end if;
when run through, this prints
other = DEAD
other = DEAD
first else
to the dbms output window
so even though greportinfo.other = 'DEAD',
(not greportinfo.other = '') is evaluated as false when it is clearly true.
what am I doing wrong?
Jon
One day I will find a signature worthy of this space. That day has not yet come.