Switch

Symbol

Prepares a conditional transfer

 

Fields that are within a Switch will always be copied

A Switch node can process one or more cases (Case). The Switch instruction serves to execute different blocks of instructions depending on the value of an expression. This kind of (multiple) branch specifies which of two (or more) program sections is to be executed depending on one (or more) conditions.

'Input help' area

Source alias

This is the database alias for the data source specified in the main node (transfer).

 

Changes made here will be reflected in the Transfer main node.

Target alias

The database alias in the main node (Transfer) for the target is shown here.

 

Changes made here will be reflected in the Transfer main node.

'Switch' area

From variable

Activate this option if the check within the Switch is to take place from a variable and not from a field.

If the From variable option is activated, the selection field label changes from Field to Variable.

Field / Variable

Enter the variable here or select the field to be used for the check within the switch.

If the From variable option is activated, the selection field label changes from Field to Variable.

Trim

Specifies if the leading and trailing spaces are to be deleted from the value before the comparison is made.

 

In the example, the MANDANT field is used within the Switch to determine the value to be used for the Team (PERSTEAM table, TEAMNR field).

If the Mandant field contains the value GSNr1, the value in the TEAMNR field will be set to 1 by means of a constant, and so on.