By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
DECLARE
test1 number := 1;
test2 number := 2;
BEGIN
dbms_output.put_line(case when test1 = test2 then 1 else 0 end);
END;
/
1 rows affected
dbms_output:
0