Home | Table of Contents | Dictionary in CTL2 | CloverETL 4.6.1
--- | --- | ---
Prev | Language Reference | Next

## Dictionary in CTL2

To use a dictionary in your graph, define the dictionary first: see Chapter 38, Dictionary.

To access the entries from CTL2, use the dot syntax as follows:

`dictionary.<dictionary entry>`

This expression can be used to

- define the value of the entry:

      dictionary.customer = "John Smith";

- get the value of the entry:

      myCustomer = dictionary.customer;

- map the value of the entry to an output field:

      $out.0.myCustomerField = dictionary.customer;

- serve as the argument of a function:

      myCustomerID = isInteger(dictionary.customer);

Prev | Up | Next
Variables | Home | Table of Contents | Operators