I have a function in PL/SQL which checks if a particular emp_id exists or not which is:
emp_id
CREATE OR REPLACE FUNCTION checkEmpNo(eno numeric) RETUR
Alternatively you can use the Oracle function diutil.bool_to_int to convert a boolean value to an integer: True -> 1, False -> 0.
diutil.bool_to_int
dbms_output.put_line(diutil.bool_to_int(p_your_boolean));