ATC: ENDLOOP

This command marks the bottom of a loop and returns to the start of the loop if there are additional iterations remaining.

Example

ATC: FOREACH DocItem BY DocItemNumber WITH Evaluation IS NULL;
     ATC: SET @.Evaluation = P
ATC: ENDLOOP

The above example means “for each Item with no evaluation yet, and in Item Number order, set the Evaluation field to P (Pending).”


Last updated: September 19, 2017 at 11:25 am; 

Related Post

ATC: DUEATC: DUE

ATC: DUE option(s)  INTO $variable This command sets the document due date (or optionally, sets it to a specific day of the month) or creates a variable with the date

ATC: ENDIFATC: ENDIF

ATC: ENDIF This command marks the end of an IF block that starts with ATC: IF. Examples ATC: IF SourceDocNo = NULL ATC: SET SourceDocNo = DocNo ATC: ENDIF The