7.8.12.1. Set up feature algorithm - simple example

  1. Click on the button New.

  2. Enter the variable name NENN under Name.

  3. Under Storage location [Save location], select the option Only in table or In geometry and table.

    (No feature algorithm can be used for the "Only in geometry [Only in geometry] " storage location [Save location] )

  4. Under Status, select the Feature algorithm [Attribute algorithm] option.

  5. Under Formula [Equation], open the extended input field by clicking on ... to open the extended input field.

    Click on the $VAR= button.

    -> The variable name entered under Name is written into the field as the first expression component of the feature algorithm .

  6. Specify the assignment that is to define the NENN variable [Variable].

    -> Since NENN is a text variable, the expression NENN = '$H.x$B.x$L.'.

    "Feature algorithm [Attribute algorithm] " dialog box

    "Feature algorithm [Attribute algorithm] " dialog box

    [Note]Note

    The use of correct syntax is very important:

    • Text variables

      For text variables, always enter the information within the two single quotation marks. In the format dollar sign Variablenname dot [Point] , variables can be included in the algorithm as placeholders. Combinations with other characters or arithmetic symbols and links via IF and ELSEIF functions (see explanation below) are also possible.

    • Number variables

      In the case of numeric variables no apostrophes are required. A numeric variable can be assigned a fixed numerical value and/or a calculation which, in turn, contains variables.

    Close the dialog by clicking OK.

    -> The entry is set under Formula [Equation].

  7. Finally, click on Add variable.

    -> The variable NENN is added to the list of all project variables.

    -> The variable NENN is marked with the corresponding icon for feature algorithm [Attribute algorithm].