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: ADD ITEMATC: ADD ITEM

ATC: ADD ITEM fieldname value This command adds an Item to the current document and sets the named fields to the value specified. Multiple fieldname and values can be specified,

ATC: EXIT LOOPATC: EXIT LOOP

ATC: EXIT LOOP This command exits the current ATC: FOREACH loop. It is usually used within an ATC: IF block. Example ATC: FOREACH DocAttachedFile BY CheckOutStatus WITH CheckOutStatus <> 'H'

ATC: ADD WBCODEATC: ADD WBCODE

ATC: ADD WBCODE costcode description |  FROM projectid  LIKE mask This command adds one or more cost codes to the project identified by the current target document. No save is required. This command is