Index | Home | Forums
Oracle PL/SQL Example 2-25 Using BOOLEAN Variables in Conditional Tests

Example 2-25 Using BOOLEAN Variables in Conditional Tests

DECLARE
   done BOOLEAN ;
BEGIN
-- Each WHILE loop is equivalent
   done := FALSE;
   WHILE done = FALSE
   LOOP
      done := TRUE;
   END LOOP;
   done := FALSE;
   WHILE NOT (done = TRUE)
   LOOP
      done := TRUE;
   END LOOP;
   done := FALSE;
   WHILE NOT done
   LOOP
      done := TRUE;
   END LOOP;
END;
/


This page was created by oracleabc.com on Feb 23,2008 00:09:02
General comments and questions regarding this document should be sent by email to info@oracleabc.com or post your comments here