--- title: "copy()" slug: "basic-copy-field" updated: 2026-08-11T07:42:14Z published: 2026-08-11T07:42:14Z canonical: "docs.lobstersoftware.com/basic-copy-field" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # copy() Returns the value of a data element **a**. ## Parameters | Parameter | Description | | --- | --- | | a | The necessary value for the selected parameter type (see above). | Possible specifications (if the name of a non-existent field, variable etc. is specified, the function will abort with an error message): | Type of parameter | Value of parameter | Meaning | | --- | --- | --- | | Source field | Name of the source structure field. | Value of the source structure field. | | Value | Arbitrary value. | Constant. | | Result | Position number of a previously executed function in the current Function chain. | Result of the referenced function. | | Variable | Name of the variable. | Value of the (defined) variable. | | Link | | Value of the source field that has been assigned to the current field. | | Target field | Name of the target structure field. | The currently set value of the given target structure field. | ## Examples Defined is a source field *SourceField* with value *value*, a variable *VAR* with value *10*, a target field *TargField* with value *targvalue*. The current field executing the function is assigned to a source field with value *targvalue*. The result of the previously execute function with number 1 is *World*. | Type of parameter | Value of parameter | Result | | --- | --- | --- | | Value | Hello | *Hello* | | Result | 1 | *World* | | Source field | SourceField | *Value* | | Source field | OtherField | Function aborts with an error. | | Variable | VAR | *10* | | Variable | OTHERVAR | Function aborts with an error. | | Target field | TargField | *targvalue* | | Target field | OtherField | Function aborts with an error. | | Link | | *assignvalue* | Function chains in Lobster consist of sequences of functions that are used to define conditions or to process data. The possibility of encapsulating them in macros and reusing them allows for central maintenance and compact use. Changes to a macro affect all profiles with that macro. Function chains can be determined both system-wide and client-specific.