SQL> SQL> -- Changing the loop increment. SQL> BEGIN 2 FOR i IN 1..6 LOOP 3 IF MOD(i,2) = 0 THEN 4 DBMS_OUTPUT.PUT_LINE('Loop counter is ' || i); 5 END IF; 6 END LOOP; 7 END; 8 / Loop counter is 2 Loop counter is 4 Loop counter is 6 PL/SQL procedure successfully completed. SQL> SQL>