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: STATUSATC: STATUS

ATC: STATUS statuscode This command sets the status code on the current document to the value specified.  This command is the same as ATC: SET STATUS = statuscode is required.

ATC: ATTACH ASSEMBLEATC: ATTACH ASSEMBLE

ATC: ATTACH ASSEMBLE options  This command assembles all attachments that are flagged as Incl=Assemble (on the document’s Attachment tab) and attaches that assembled PDF file to the target document. options are optional.  There are several