 <p>Yes, you can; if the variable/parameter you are trying to compare is already populated with data. Something like this:</p> <pre><code>DECLARE v_num1 NUMBER := 5; v_num2 NUMBER := 3; v_temp NUMBER; BEGIN -- if v_num1 is greater than v_num2 rearrange their values IF v_num1 &gt; v_num2 THEN v_temp := v_num1; v_num1 := v_num2; v_num2 := v_temp; END IF; </code></pre> <p>Provide more information based on what you are actually trying to do.</p>