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.

Example

ATC: IF Final = true
     ATC: SEQ * NOW
ATC: ELSE
     ATC: SEQ * NOW 14
ATC: ENDIF

The above example means “if the Final field on the document is checked (i.e, True), make the next Seq due right away; otherwise, set the Seq Due Date to 14 days from now.”


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

Related Post

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: ROUTEATC: ROUTE

ATC: ROUTE routelist; option This command alters the route of the current document. routelist is required. It specifies the routing to be applied to the document. The routelist can contain