I want to substitute a string as a condition in IF statement in Oracle PLSQL. Please look at the anonymous block below and advise how I can achieve the requirement.
DECLARE
var_bool1 varchar2(100);
BEGIN
var_bool1 := '3<5 AND 5<8';
IF (var_bool1) THEN
DBMS_OUTPUT.PUT_LINE('SUCCESS');
END IF;
END;
I know I can write the IF statement as below but I'm looking for a specific req like the above.
IF (3<5 AND 5<8) THEN
...
END IF;
Need help please...