Creating Loops and Conditional Statements Using the For Loop Editor

The For Loop iterates through the selected parameter’s sequence of values and executes the subflow at each iteration. You can also build an expression for conditional statements.

  1. Double-click the Data Exchanger component icon .

    The Data Exchanger Component Editor appears.

  2. From the Data Exchanger Component Editor, select a data source and click the button.

    The Edit For Statement dialog box appears.

  3. Click the Simple or Advanced tab.

    • You can use the Simple tab to edit a parameter, initial value, final value, and increment. This is the basic 'for i = 1 to 10 by 1' type loop.

    • You can use the Advanced tab to edit the initialization, condition, and update expressions. This is the complete Java (or C or C++): 'for (i = 1, j = 10; xx[i]; i++, j--)' For loop.

  4. Click the button at the end of each text box to open a calculation editor.

    The editor can be used to build an expression for the corresponding text box based on parameters, operators, and functions. A line of instructions at the top of the calculation editor indicates the type of expression expected (e.g., assignment, integer value, logical condition).

  5. Click OK to save your changes and to close the dialog box.