To work with the tool in Foresight Analytics Platform 10, use the new interface.

Setting Up Algorithm Calculation Execution Conditions

After adding and setting up parameters of calculation algorithm it is available to set up calculation algorithm execution conditions by means of branching. Branching is used to create conditions for executing single elements of calculation algorithm.

To set up calculation algorithm execution conditions:

  1. Click the Branching button on the Home ribbon tab. As a result, a branching in the calculation tree and the Else condition are created:

  1. Select the created branching and select the Branch item in the drop-down menu of the Branching button. As a result, a branch is created in the branching:

NOTE. The number of branches and branchings is unlimited. If there are several branches, only the first branch, which condition is executed, is calculated by default. To check the condition and execution of other branches, select the Execute All Appropriate Branches branching's context menu item. All branches, which conditions are executed, are executed on algorithm calculation.

  1. Drag calculation algorithm elements to the Branch and Else conditions:

  1. Open the Branching Parameters dialog box to set calculation block execution conditions:

As a result, the Branching Parameters dialog box opens:

  1. Click the Add button on the toolbar to add a condition:

  1. Set the parameters:

NOTE. It is available only for the Parameter condition type.

NOTE. It is available only for the Parameter condition type. The set of displayed condition types depends on the parameter or data type of its attribute selected in the Branching Parameter column.

The created formula will be displayed as a string disabled for editing in the Value column.

NOTE. The formula can be set and edited only in the Branch Condition Formula dialog box.

To delete one of the conditions, select the condition and click the Delete button on the toolbar.

To delete all conditions, click the Clear button.

Example of Setting Up Algorithm Calculation Execution Condition

The example creates a branching with two branches, each of the branches has algorithm calculation execution conditions.

See also:

Getting Started with the Calculation Algorithms Extension in the Web Application Building Calculation Algorithm