O'Reilly logo

Programming Microsoft® Dynamics™ NAV: Create, modify, and maintain applications in NAV 5.0, the latest version of the ERP application formerly known as Navision by David Studebaker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Flow Control

The structures defined for flow control are as follows:

REPEAT—UNTIL Control Structure

REPEAT-UNTIL allows you to create a repetitive code loop REPEATing a block of code UNTIL a specific conditional expression evaluates to TRUE. In that sense REPEAT-UNTIL defines a block of code, operating like the BEGIN-END compound statement structure which we covered in the previous chapter. In this case, the REPEAT tells the system to keep reprocessing the block of code, while the UNTIL serves as the exit doorman, checking if the conditions for ending the processing are true. Because the exit condition is not evaluated until the end of the loop, a REPEAT-UNTIL structure will always process at least once through the contained code.

REPEAT-UNTIL is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required