7.8.11.1. Create attribute algorithms - Example

  1. Click on the button New.

  2. Under Name, enter the variable name NENN.

  3. Under Save location, choose the option Only in table or In geometry and table.

    (Using Save location "Only in geometry", no attribute algorithm can be used.)

  4. Under Status, select the option Attribute algorithm.

  5. Under Equation, open the enlarged input field with a click on the browse button ....

    Click on the button $VAR=.

    --> The variable name entered under Name is entered into the field as first part of the expression of the attribute algorithm.

  6. Enter the Assignment, which shall specify the Variable NENN.

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

    "Attribute algorithm" dialog box

    "Attribute algorithm" dialog box

    [Note]Note

    Correct Syntax is important in this case:

    • Text variables

      Make sure your entries occur within the two apostrophes. In the format Dollar sign Name_of_variable Point (without empty spaces) variables can be used as place holders in the algorithm. Combinations with other text or arithmetic operators and connections via IF and ELSEIF functions (see explanation further down) are possible.

    • Numeric 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 with a click on OK.

    -> The entry is set under Equation.

  7. Click on Apply.

    -> The variable NENN is carried over into the listing of all project variables.

    -> The variable NENN is marked with the respective icon for Attribute algorithm.