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: EXITATC: EXIT

ATC: EXIT condition  | ( WHEN table.field  (operator value-expression | IsChanging)) This command ends the workflow script if conditions are met. This is a useful way to have the remainder of

ATC: ADD COMMENTATC: ADD COMMENT

ATC: ADD COMMENT description This command adds a comment/remark to the current target document. description is required. The freeform description can be any text and can include spaces Note: to format

ATC: ADDRATC: ADDR

ATC: ADDR target-addr -type source- addr -type This command sets the target address in the target document based on the specified source address type in the source document. target-addr-type is