ATC: SETHTMLATC: SETHTML

ATC: SETHTML tablename.fieldname = new-value This command is similar to the ATC: SET command but maintains any HTML formatting of the text value expressed in the command. The text editor

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: 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: ENDLOOPATC: ENDLOOP

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

ATC: FOREACHATC: FOREACH

ATC: FOREACH table state BY sortfield WITH filter; This command begins a block of commands that will repeat once for each row in the specified table (that matches the filter).

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

ATC: ELSEATC: ELSE

ATC: ELSE This command can be used for an IF/ELSE situation, with ATC: IF. It indicates the ATC commands to be used when the ATC: IF command evaluates to false.

ATC: IFATC: IF

ATC: IF condition  | (table.field (operator value-expression |  IsChanging)) If this command appears anywhere in the script, the entire script is run in the background (even if the command is in an ATC:

ATC: CALL and ATC: INVOKEATC: CALL and ATC: INVOKE

ATC: CALL [scriptname or GUID or $variable] ATC: INVOKE [scriptname or GUID or $variable] The CALL command runs a workflow script from the Workflow Script tool. When the called script

ATC: BACKGROUNDATC: BACKGROUND

ATC: BACKGROUND Legacy Warning:  You almost certainly want to use ATC: INVOKE instead! If this command appears anywhere in a ROUTE workflow script, the entire script is run in the