Course Content

Course Content


An until loop is a loop that repeats until the condition is met. The syntax for declaring an until loop is as follows:

  • Until do
  • ;
  • end;

The purpose of the 'until' loop is to keep executing a set of commands until the condition becomes false.

An until loop is a programming construct that repeats a set of commands until a specific condition is met. The condition is checked at the beginning of each iteration, and the loop continues to loop as long as the condition evaluates to false.

One advantage is that the loop will stop when it reaches the end of the list, so it doesn't need to keep checking if it is on the last element. Another advantage is that you can specify how many times you want to repeat the loop, so you don't need to keep checking how many times it has gone through.

The key difference between an until and while loop is that an until loop typically only executes when a certain condition becomes true, whereas a while loop executes indefinitely or until a certain condition becomes false.

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere