Home | Table of Contents | Variables | CloverETL 4.6.1
--- | --- | ---
Prev | Language Reference | Next

## Variables

To define a variable type data type of the variable, white space, the name of the variable and semicolon.

Such variable can be initialized later, but it can also be initialized in the declaration itself. Of course, the value of the expression must be of the same data type as the variable.

Both cases of variable declaration and initialization are shown below:

-     dataType variable;

      ...

      variable = expression;

-     dataType variable = expression;

Example 59.16. Variables

    int a;
    a = 27;
    int b = 32;
    int c = a;

Prev | Up | Next
Literals | Home | Table of Contents | Dictionary in CTL2