Arg Functions in DIAL

The arg functions access arguments that are passed to the DIAL interpreter. The arguments are passed from the command line or the calling process, such as a DIAL process node in a Production script.

Arg Function Examples

The following examples demonstrate the use of arg functions.

NOTE: If the script calls arguments that do not exist, the script continues silently without error.

Example 1 in Workbench

You cannot pass arguments when running DIAL scripts directly from the text editor in Workbench. You can, however, pass arguments to a DIAL script if you use Production. The Production DIAL node can define arguments that are passed to the script. ClosedFor example:

DIAL node with example script

After the script runs, click the DIAL node to view the results. ClosedFor example, this image shows the Production script calling the DIAL script with arguments:

DIAL node script call

When you click the Click to View link on the DIAL script line item, you can see the messages that are sent to standard output. ClosedFor example:

DIAL script stdout

See also: DIAL Process Node.