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
andFOR-DOWNTO
CASE-ELSE
WITH-DO
QUIT
,BREAK
,EXIT
, andSKIP
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 ...
Get Microsoft Dynamics NAV now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.