Execute oracle stored procedure dynamically based on input values : I am using Oracle 12c and have a stored procedure that accepts 6 input fields, queries database using the same and return result set. However, these 6 input fields are user input values from front-end so user may or may not enter all 6 input fields. I would need to execute stored procedure with whatever values it receives and ignore the rest.

Example: if i pass only 3 input values, it has to query database using only those 3 and ignore rest 3. 

I couldnt do it as i am not able to use if/else condition(to pass non-null values only) to prepare the executable SQL inside the stored procedure. Is there a way to handle this? pls suggest.