O'Reilly logo

Microsoft Dynamics NAV by Mark Brummel, Christopher Studebaker, David Studebaker, David Roys, Vjekoslav Babić, Cristina Nicolàs Lorente, Laura Nicolàs Lorente, Alex Chow

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

Process flow control functions are the functions that execute the decision making and resultant logic branches in executable code. IF–THEN-ELSE, discussed in Chapter 6, Introduction to C/SIDE and C/AL, is also a member of this class of functions. Here we will discuss the following:

  • REPEAT-UNTIL
  • WHILE-DO
  • FOR-TO and FOR-DOWNTO
  • CASE-ELSE
  • WITH-DO
  • QUIT, BREAK, EXIT, and SKIP

REPEAT-UNTIL

REPEAT–UNTIL allows us to create a repetitive code loop which REPEATs a block of code UNTIL a specific conditional expression evaluates to TRUE. In that sense, REPEAT–UNTIL defines a block of code, operating somewhat like the BEGIN–END compound statement structure which we covered in Chapter 6, Introduction to C/SIDE and C/AL. REPEAT tells the system to keep ...

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