---
title: What are functions, and which functions can I use for calculations, automations and formulas in Vaira?
description: Learn what functions are and how to use them, and get an overview of some of the most common functions with explanations.
---

[Skip to content](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#main-content)

- [English](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira)
- [Deutsch (German)](https://support.vaira.app/welche-funktionen-stehen-mir-für-berechnungen-automatisierungen-und-formeln-in-vaira-zur-verfügung)

English

Show submenu for translations

[![App Icon - Orange Gradient + Logo - White Gradient- 512px](https://support.vaira.app/hs-fs/hubfs/Vaira%20Design-Elemente/App%20Icon%20-%20Orange%20Gradient%20%2B%20Logo%20-%20White%20Gradient-%20512px.png?width=50&height=50&name=App%20Icon%20-%20Orange%20Gradient%20%2B%20Logo%20-%20White%20Gradient-%20512px.png)](https://support.vaira.app/?hsLang=en)

- [Ticket erstellen](https://vaira.app/bug)
- [Zum Kundenportal](https://support.vaira.app/tickets)

Open main navigation

Close main navigation

- [Ticket erstellen](https://vaira.app/bug)
- [Zum Kundenportal](https://support.vaira.app/tickets)
- - [English](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira)
    - [Deutsch (German)](https://support.vaira.app/welche-funktionen-stehen-mir-für-berechnungen-automatisierungen-und-formeln-in-vaira-zur-verfügung)

  English
  
  Show submenu for translations
- [kostenlosen Account erstellen](https://vaira.app/kostenlos)

[kostenlosen Account erstellen](https://vaira.app/kostenlos)

 Hallo. Wie können wir dir helfen?

- There are no suggestions because the search field is empty.

1. [Vaira Knowledge Database](https://support.vaira.app/en?hsLang=en)
2. [Vaira Office](https://support.vaira.app/en/vaira-office?hsLang=en)
3. [Workflows and processes](https://support.vaira.app/en/vaira-office?hsLang=en#workflows-and-processes)

December 3, 2026

# What are functions, and which functions can I use for calculations, automations and formulas in Vaira?

**Before you start**: This article is aimed at advanced users who already understand the basic principles of formulas, calculations and operators. If you're not familiar with these basics yet, we recommend first reading the articles**[How do formulas work in Vaira?](https://support.vaira.app/en/how-do-formulas-work-in-vaira?hsLang=en)** and **[Operators for calculations and automations in Vaira Office](https://support.vaira.app/en/operators-for-calculations-and-automations-in-vaira-office?hsLang=en)** so you can follow the content here more easily.

### What are functions?

Functions let you dig deeper into your data and work with it. A function bundles several mathematical and operational commands for Vaira that our developers have combined, so you only need to run a single command. Functions also make things possible that you couldn't do manually in Vaira at all.

### Functions explained using the example of planning a party with and without a party planner

Here's an everyday example of functions: imagine you want to throw a party. To do that, you need to do things like:

- Create a guest list
- Write invitations
- Send invitations
- Order drinks
- Order food
- ...

These are all separate tasks and quite a lot of work for you. Instead, though, you can hire a party planner who takes care of all the groundwork for you.

Our developers have, in a sense, built you a party planner. They've defined all the tasks above in more detail so the party planner knows exactly what your goal is, and they've packed the instructions into the function "partyVorbereiten" (prepare party). When you activate this function, all the steps above are carried out automatically one after another. In the end, you just get the results and don't have to worry about carrying out the individual steps.

That's the principle you can use in Vaira to work with your data in fields, steps, tasks and workflows in general. You can run calculations, search for specific data, or automatically check whether data is correct or falls outside predefined ranges.

### How are functions used?

You can use functions in calculations, for example, and in the automations in the workflow builder. The structure is always the same: a function starts with a period followed by the name of the function (e.g. ".exists" for a function that checks whether a value occurs). This part calls the function itself.

The brackets after it, "(...)", then contain all the information needed to run the function. These can be references to fields, variables or values. The standard signature – that is, how you describe the formula without specific data – looks like this for the .exists formula, for example:

`.exists(x,p)`

Before the period comes the reference to what the function should be applied to. These will often be fields in your workflow, which you build using the familiar pattern (step.stepID.task.taskID).

**Good to know**: The structure doesn't ring a bell? Then take another look at the article **[How do formulas work in Vaira?](https://support.vaira.app/en/how-do-formulas-work-in-vaira?hsLang=en)**, where we explain field references in more detail.

So a function might look like this:

`tasks.aufmass.fields.materialerfassung.exists(x,p) `

The x and the p are then replaced with the specific values for the function so that the calculation can be carried out. For now, though, this general structure of functions is enough.

You'll find all further explanations for each function below.

### Useful functions for everyday work – overview

Below are some functions that may come in handy in your work. Vaira offers many more functions – listing them all here would be far too much. If you're ever missing a function, [just ask us](https://vaira.app/en/contact/) whether and how it can be done in Vaira. We aim to add more useful functions to this list over time.

Below the cheat sheets for each category, we explain each function in detail.

In the examples, the field and task IDs (such as `aufmass`, `materialerfassung` or `Stammdaten`) come from a German sample workflow. Simply replace them with the IDs from your own workflow.

#### Passing on, taking over and syncing values

| **Name** | **Signature** | **Use** |
| --- | --- | --- |
| [Passing on values](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#wertuebergabe) | `Verweis1:Verweis2` *Reference 2 sends, reference 1 receives.* | **Automatically passes the value** in the field of Verweis2 (reference 2) to the field of Verweis1 (reference 1). This saves you from entering the same data several times when different fields in a process always contain the same information. |

#### Searching, finding, checking

| **Name** | **Signature** | **Use** |
| --- | --- | --- |
| [Exists](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#exists) | `.exists(x, p)` | **Checks** whether a specific record **exists.** |
| [Find](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#find) | `.find(x, predicate, function, default)` | **Searches** for a specific value with defined properties and returns it. |
| [Contains](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#contains) | `.contains(s)` | **Checks** **text fields** and **textareas** to find out **whether** the word or string in question **occurs** anywhere. |
| [Contains (option field)](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#containsOptionsfeld) | `.concatDisplayNames().contains(s)` | **Checks** whether a specific word or string **has been selected** in an **option field** and returns true or false. |
| [StartsWith](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#startsWith) | `.startsWith(s)` | **Checks** whether the value in a text field starts with the **search string** (e.g. with "App" if the field contains "Apple") and returns either *true* or *false*. |
| [EndsWith](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#endsWith) | `.endsWith(s)` | **Checks** whether the value in a text field ends with the **search string** (e.g. with "ple" if the field contains "Apple") and returns either *true* or *false*. |
| [Users.Exists](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#usersExists) | `.users.exists(x, x == "users/ID")` | **Checks** whether the user with the specified ID has been entered in a field and returns either *true* or *false*. |
| [Groups.Exists](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#groupsExists) | `.groups.exists(x, x == "groups/ID")` | **Checks** whether the group with the specified ID has been entered in a field and returns either *true* or *false*. |

#### Calculating

| **Name** | **Signature** | **Use** |
| --- | --- | --- |
| [Sum](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#sum) | `.sum(x, p)` | Runs a **calculation** for one or more fields with any calculation operator. |

#### Changing and merging data

| **Name** | **Signature** | **Use** |
| --- | --- | --- |
| [Converting a field value to a string](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#string) | `string(...)` | **Converts** the field value into a string, for example to make a number available for joining with other strings. |
| [Converting a field value to a whole number](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#int) | `int(...)` | **Converts** the field value, e.g. a decimal number, into a whole number (... -2, -1, 0, 1, 2, ...). Especially useful when longer decimal numbers (e.g. 2.12384) should be turned into a whole number (then just 2). Everything after the decimal point is cut off; the number is not rounded. |
| [Converting a field value to a rational number](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#rational) | `rational(...)` | *You usually won't need this function for normal everyday calculations.* **Converts** the field value from a real floating-point number into a fraction for high-precision calculations. |
| [Concat (display names)](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#concatAnzeigenamen) | `.concatDisplayNames()` | **Joins** several display names and returns them separated by commas. |
| [Joining field values](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#verkettenVonFeldwerten) | `"..." + (...) + ...` | **Joins** any number of contents together and combines them in a text field; you can also use other functions and add strings that don't come from fields. |

### Useful functions for everyday work – detailed explanations

#### **Passing on values**

**Use case**

Your process has fields that basically contain the same values (such as an address field) but appear in different process steps. So that each field doesn't have to be filled in again, you can pass the value from the first field to all other fields of the same kind. That keeps the content of the fields in sync.

**General structure**

`Verweis1:Verweis2`

**Example**

`tasks.bautagebuch.fields.Baudienstleister:tasks.aufmass.fields.Baudienstleister`

- **Receiving field**  
  the first reference before the `:` receives the value of the second reference; here, the field "Baudienstleister" (construction contractor) in the task "Bautagebuch" (construction diary) receives the value (`tasks.bautagebuch.fields.Baudienstleister`),
- **Operator**  
  followed by the operator `:`,
- **Sending field**  
  and then the sending field is defined, which here is the field "Baudienstleister" in the task "Aufmass" (site measurement) (`tasks.aufmass.fields.Baudienstleister`).
- **Result**  
  If "Tiefbau GmbH" is entered in the sending field, for example, the content of the receiving field also becomes "Tiefbau GmbH".
- **Example result**  
  Tiefbau GmbH

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Exists**

**Use case**

You want to find out whether a specific value occurs in your data. All you need as a result is a "yes" or "no".

**General structure**

**`.exists(x,p)`**

**Example**

`tasks.aufmass.fields.materialerfassung.exists(Bauteil, Bauteil.fields.dimension == 32)`

- **Scope**  
  applied to the field "Materialerfassung" (material recording) in the task "Aufmass" (`tasks.aufmass.fields.materialerfassung`),
- **Calling the function**  
  called in the standard way (`.exists`),
- **Parameter `x`**  
  checks each component (`Bauteil`) individually,
- **Parameter `p`**  
  to see whether the field "Dimension" of that component (`Bauteil.fields.dimension`) is exactly 32 (`== 32`).
- **Result**  
  The function returns a Boolean `true` if at least one component meets the condition, or `false` if none of the components meets it.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Find**

**Use case**

You want to find a specific entry in your data and return a value from it. You're looking for the first match that can be found, even if several entries could match your query.

**General structure**

**`.find(x, predicate, function, default)`**

**Example**

`tasks.aufmass.fields.materialerfassung.find(Bauteil, Bauteil.fields.dimension == 32, Bauteil.fields.preis, 0)`

- **Scope**  
  applied to the field "Materialerfassung" in the task "Aufmass" (`tasks.aufmass.fields.materialerfassung`),
- **Calling the function**  
  called in the standard way (`.find`),
- **Parameter `x`**  
  searches each component (`Bauteil`) individually,
- **Parameter `predicate`**  
  to see whether there's a component with a "Dimension" field `(Bauteil.fields.dimension)` whose value is "32"  (`== 32`),
- **Parameter `function`**  
  and if so, the value from the "Preis" (price) field of the first matching component should be taken (`Bauteil.fields.preis`),
- **Parameter `default`**and if not, the value "0" should be returned by default `(0)`.
- **Result**  
  If there's a match, the function returns the value for the first component found and then stops – it doesn't search any further. If there's no match, the function returns the defined default value "0".
- **Example result**  
  If there's a match: 52.43  
  If there's no match: 0

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Contains**

**Use case**

You have text fields or textareas and want to check whether a specific word (e.g. "Muffe", German for sleeve), any specific string (e.g. "01baum12") or a specific number ("123.12") occurs in them, and get a simple *true* or *false* as the answer.

**General structure**

`.contains(s)`

**Example**

`tasks.aufmass.fields.Dienstleister.contains("Tiefbau GmbH")`

- **Scope**  
  applied to the field "Dienstleister" (contractor) in the task "Aufmass" (`tasks.aufmass.fields.Dienstleister`),
- **Calling the function**  
  called in the standard way (`.contains`),
- **Parameter `s`**  
  this is where the word, number or any string goes, in double quotation marks ("") (`"Tiefbau GmbH"`)
- **Result**  
  The function returns "true" if the search term occurs in the text field or textarea, and "false" if the term wasn't found.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Contains (option field)**

**Use case**

You have an option field with several choices and want to check whether a specific value (e.g. "Muffe", "01baum12", "123.12") has been selected, and get a simple *true* or *false* as the answer.

**General structure**

*This function combines the function concatDisplayNames() and the function contains(s) and calls them together.*

`e.concatDisplayNames().contains(s)`

**Example**

`tasks.stammdaten.fields.AnschlussArten.concatDisplay Names().contains("Hausanschluss")`

- **Scope**  
  applied to the field "AnschlussArten" (connection types) in the task "Stammdaten" (master data) `tasks.stammdaten.fields.AnschlussArten`
- **Calling the function**  
  first calls the Concat function (`.concatDisplay Names()`) to load all selected options into the buffer, and then calls the Contains function (`.contains`), which checks whether the term occurs,
- **Parameter `s`**  
  this is where the word, number or any string goes, in double quotation marks ("") (`"Hausanschluss"`, German for house connection)
- **Result**  
  The function returns "true" if the search term "Hausanschluss" has been selected in the options, and "false" if the term wasn't found.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **StartsWith**

**Use case**

You have text fields that must always start with a specific string, and you want to check whether that's the case. A *true* or *false* is all you need as a result.

**General structure**

`.startsWith(s)`

**Example**

`tasks.aufmass.fields.Dienstleister.startsWith("Tiefbau")`

- **Scope**  
  applied to the field "Dienstleister" in the task "Aufmass" `tasks.aufmass.fields.Dienstleister`
- **Calling the function**  
  called in the standard way (`.startsWith`),
- **Parameter `s`**  
  this is where the word, number or any string goes, in double quotation marks ("") (`"Tiefbau"`)
- **Result**  
  If the text field starts with the search term "Tiefbau", you get *true;* if not, you get *false*.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **EndsWith**

**Use case**

You have text fields that must always end with a specific string, and you want to check whether that's the case. A *true* or *false* is all you need as a result.

**General structure**

`.endsWith(s)`

**Example**

`tasks.aufmass.fields.Dienstleister.endsWith("Tiefbau")`

- **Scope**  
  applied to the field "Dienstleister" in the task "Aufmass" `tasks.aufmass.fields.Dienstleister`
- **Calling the function**  
  called in the standard way (`.endsWith`),
- **Parameter `s`**  
  this is where the word, number or any string goes, in double quotation marks ("") (`"Tiefbau"`)
- **Result**  
  If the text field ends with the search term "Tiefbau", you get *true;* if not, you get *false*.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### Users.Exists

**Use case**

You want to check whether a user with a specific ID has been assigned to a field. A *true* or *false* is all you need as a result.

**General structure**

`.users.exists(x, x == "users/ID")`

**Example**

`tasks.aufmass.fields.Prüfer.users.exists(Benutzer, Benutzer == "users/2a31sda231ds5as1d32asd1")`

- **Scope**  
  applied to the field "Prüfer" (inspector) in the task "Aufmass" `tasks.aufmass.fields.Prüfer`
- **Calling the function**  
  chains the method `.users` with the function `.exists` and calls them together,
- **Parameters `x and x == "users/ID"`**  
  you can keep both `x` or replace both `x` with a clearer variable name (e.g. `Benutzer`, German for user, as in the example). The `== "users/ID"` is then the comparison part. `== "users/` always stays as it is; replace the `ID` part with the ID of the specific user (`2a31sda231ds5as1d32asd1` in the example). Make sure to put the part after the two `==` in double quotation marks and to close the bracket again after the ID.
- **Result**  
  If the user's ID occurs in the field, you get *true;* if not, you get *false*.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### Groups.Exists

**Use case**

You want to check whether a group with a specific ID has been assigned to a field. A *true* or *false* is all you need as a result.

**General structure**

`.groups.exists(x, x == "groups/ID")`

**Example**

`tasks.aufmass.fields.Baudienstleister.groups.exists(Gruppe, Gruppe == "groups/2a31sda231ds5as1d32asd1")`

- **Scope**  
  applied to the field "Baudienstleister" in the task "Aufmass" `tasks.aufmass.fields.Baudienstleister`
- **Calling the function**  
  chains the method `.groups` with the function `.exists` and calls them together,
- **Parameters `x and x == "groups/ID"`**  
  you can keep both `x` or replace both `x` with a clearer variable name (e.g. `Gruppe`, German for group, as in the example). The `== "groups/ID"` is then the comparison part. `== "groups/` always stays as it is; replace the `ID` part with the ID of the specific group (`2a31sda231ds5as1d32asd1` in the example). Make sure to put the part after the two `==` in double quotation marks and to close the bracket again after the ID.
- **Result**  
  If the group's ID occurs in the field, you get *true;* if not, you get *false*.
- **Example result**  
  true

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Sum**

**Use case**

You want to run a calculation in a list field and get the result back at the end. Calculations can add up all fields of the same kind within a list (example 1), add, multiply or otherwise combine values with other values (example 2), or include external fields in the calculation (example 3).

**General structure**

**`.sum(x,p)`**

**Example 1**

`tasks.aufmass.fields.materialerfassung.sum(Bauteil, Bauteil.fields.preis)`

- **Scope**  
  applied to the field "Materialerfassung" in the task "Aufmass" (`tasks.aufmass.fields.materialerfassung`),
- **Calling the function**  
  called in the standard way (`.sum`),
- **Parameter `x`**  
  goes through each component (`Bauteil`) individually,
- **Parameter `p`**  
  takes the value from each component's "Preis" field and adds them up (`Bauteil.fields.preis`).
- **Result**  
  The result is the sum of all price fields of the components in this list.
- **Example result**  
  1,827.23

**Example 2**

`tasks.aufmass.fields.materialerfassung.sum(Bauteil, Bauteil.fields.preis * b.fields.Anzahl)`

- **Scope**  
  applied to the field "Materialerfassung" in the task "Aufmass" (`tasks.aufmass.fields.materialerfassung`),
- **Calling the function**  
  called in the standard way (`.sum`),
- **Parameter `x`**  
  goes through each component (`Bauteil`) individually,
- **Parameter `p`**  
  takes the value from each component's "Preis" field `(Bauteil.fields.preis)`, multiplies it by the value in the "Anzahl" (quantity) field `(* Bauteil.fields.Anzahl)` and then adds them up.
- **Result**  
  The result is the sum of all price fields multiplied by their respective quantity for the components in this list.
- **Example result**  
  1,827.23

**Example 3**

`tasks.aufmass.fields.materialerfassung.sum(Bauteil, Bauteil.fields.preis * tasks.AbrechnungDL1.fields.sonderpreiskennzeichen)`

- **Scope**  
  applied to the field "Materialerfassung" in the task "Aufmass" (`tasks.aufmass.fields.materialerfassung`),
- **Calling the function**  
  called in the standard way (`.sum`),
- **Parameter `x`**  
  goes through each component (`Bauteil`) individually,
- **Parameter `p`**  
  takes the value from each component's "Preis" field `(Bauteil.fields.preis)` and multiplies the price by the value in the field "Sonderpreiskennzeichen" (special price factor) in another task  `(* tasks.AbrechnungDL1.fields.sonderpreiskennzeichen)` before the values are added up.
- **Result**  
  The result is the sum of all price fields of the components in this list, each multiplied by the special price factor from a field in an external task.
- **Example result**  
  1,827.23

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### Converting a field value to a string

**Use case**

Converts the field value into a string, for example to make a number or a date available for joining with other strings.

**General structure**

**`string(...)`**

**Example**

`string(tasks.Stammdaten.fields.Datum)`

- **Calling the command `string`**  
  calls the conversion command,
- **Calling the function `(...)`**  
  applies it to the specified field value (`(tasks.Stammdaten.fields.Datum)`).
- **Result**  
  You get the field content as a string.
- **Example result**  
  2 (as a number) becomes "2" (as a string); 03.04.2024 (as a date) becomes "03.04.2024" (as a string).

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### Converting a field value to a whole number

**Use case**

Converts the field value into a whole number (... -2, -1, 0, 1, 2, ...). Especially useful when longer decimal numbers (e.g. 2.72384) should be turned into a whole number (then just 2).

**General structure**

`int(...)`

**Example**

`int(tasks.Stammdaten.fields.Arbeitsstunden)`

- **Calling the command `int`**  
  calls the conversion command,
- **Calling the function `(...)`**  
  applies it to the specified field value (`(tasks.Stammdaten.fields.Arbeitsstunden)`).
- **Result**  
  The value in the field "Arbeitsstunden" (working hours) is converted into an integer, i.e. a positive or negative whole number. Everything after the decimal point is cut off.
- **Example result**  
  2.72384 (rational number of the data type rational) becomes 2 (whole number of the data type integer).

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### Converting a field value to a rational number

**Use case**

Converts the field value (negative and positive decimal numbers) into a fraction to allow more precise calculations. 

*You normally won't need this function, as Vaira handles number calculations automatically.* 

*This function only matters for extremely precise calculations. For example, if you divide 1 by 3, you get 0.33333..., but the reverse calculation 3 × 0.3333... doesn't give you 1 but a value just below it. For a more precise calculation, you can represent 1/3 as a fraction, so that 1/3 × 3 gives exactly 1. Since the deviation is incredibly small, Vaira works with decimal numbers by default. With this function, however, you can make the calculation more precise yourself.*

**General structure**

`rational(...)`

**Example**

`rational(1/3)*rational(1/3)`

- **Calling the command `rational`**  
  calls the conversion command,
- **Calling the function `(...)`**  
  applies it to the calculation or number in the brackets (`(1/3)`).
- **Calling the command `rational`**  
  calls the conversion command again,
- **Calling the function `(...)`**  
  again applies it to the calculation or number in the brackets (`(1/3)`).
- **Result**  
  The field receives the result of the calculation.
- **Example result**  
  2/3

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Concat (display names)**

**Use case**

You want to output all selected items from an option field, separated by commas.

**General structure**

**`.concatDisplayNames()`**

**Example**

`tasks.stammdaten.fields.AnschlussArten.concatDisplayNames() `

- **Scope**  
  applied to the field "AnschlussArten" in the task "Stammdaten" (`tasks.stammdaten.fields.AnschlussArten`),
- **Calling the function**  
  called in the standard way (`.concatDisplayNames`),
- **Parameter `()`**  
  this function has no separate parameters, but you still need to add the opening and closing brackets so that Vaira recognizes the function correctly.
- **Result**  
  You get all options separated by commas.
- **Example result**  
  Pear, Apple, Kiwi, Melon

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

 

---

#### **Joining field values**

**Use case**

You want to combine the contents of different fields, for example to automatically generate a job name or similar from several pieces of information.

**General structure**

`"..." + (...) + ...`

**Example**

*In this example, we join field values separated by a "\_". At the end, there's another "\_" and a fixed word. You can join as many values as you like.* 

*The whole command runs in a field created specifically for this purpose (e.g. "Auftragsname", job name).*

`string(tasks.Stammdaten.fields.Startdatum) + "_" + tasks.Stammdaten.fields.Kundenname + "_" + "Testwort"`

- **Calling the command `string`**  
  uses the [string function](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#string) to convert the field value from another data type (here: date) into the string data type needed for joining,
- **Field value 1 `(...)`**  
  the first field from which the value for joining is taken (`(tasks.Stammdaten.fields.Startdatum)`, start date),
- **Join operator `+`**  
  the `+` operator tells Vaira that strings should be joined here,
- **Static string `"_"`**  
  a part of the joined text that doesn't come from a field but is a fixed string that's always added in this form; here, the symbol `_` is added to separate the individual parts,
- **Join operator `+`**  
  join operator as above,
- **Field value 2 `(...)`**  
  the second field from which the value for joining is taken; here, the field "Kundenname" (customer name) from the step "Stammdaten" (`tasks.Stammdaten.fields.Kundenname`),
- **Join operator `+`**  
  join operator as above,
- **Static string `"_"`**  
  again the `_` as above to separate the parts,
- **Join operator `+`**  
  join operator as above,
- **Static string instead of field value 3** **`(...)`**  
  instead of taking a value from a field here, we add a fixed string at the end that should always be appended, in double quotation marks; here, it's the word `"Testwort"` (test word).
- **Result**  
  In the field containing this command, the example now produces a single string made up of all the joined parts.
- **Example result**  
  2024-04-24\_Mustermann\_Testwort

[» back to top](https://support.vaira.app/en/functions-for-calculations-automations-and-formulas-in-vaira#uebersicht)

- [Welcome!](https://support.vaira.app/en/welcome#main-content)
- [Setup](https://support.vaira.app/en/setup#main-content)

    - [Users](https://support.vaira.app/en/setup#users)
    - [Support & customer portal](https://support.vaira.app/en/setup#support-customer-portal)
    - [14-day full version trial](https://support.vaira.app/en/setup#14-day-full-version-trial)
    - [Account](https://support.vaira.app/en/setup#account)
- [Vaira App](https://support.vaira.app/en/vaira-app#main-content)

    - [Installation](https://support.vaira.app/en/vaira-app#installation)
    - [Getting started](https://support.vaira.app/en/vaira-app#getting-started)
    - [Viewing, searching & finding](https://support.vaira.app/en/vaira-app#viewing-searching-finding)
    - [Working on processes](https://support.vaira.app/en/vaira-app#working-on-processes)
    - [AR measurement](https://support.vaira.app/en/vaira-app#ar-measurement)
    - [GNSS measurement](https://support.vaira.app/en/vaira-app#gnss-measurement)
    - [3D models](https://support.vaira.app/en/vaira-app#3d-models)
    - [Troubleshooting](https://support.vaira.app/en/vaira-app#troubleshooting)
    - [Exporting](https://support.vaira.app/en/vaira-app#exporting)
- [Vaira Office](https://support.vaira.app/en/vaira-office#main-content)

    - [Getting started](https://support.vaira.app/en/vaira-office#getting-started)
    - [Managing users and roles](https://support.vaira.app/en/vaira-office#managing-users-and-roles)
    - [Workflows and processes](https://support.vaira.app/en/vaira-office#workflows-and-processes)
    - [Processes](https://support.vaira.app/en/vaira-office#processes)
    - [Working with measurements](https://support.vaira.app/en/vaira-office#working-with-measurements)
    - [Directories](https://support.vaira.app/en/vaira-office#directories)
    - [Importing](https://support.vaira.app/en/vaira-office#importing)
    - [Exporting](https://support.vaira.app/en/vaira-office#exporting)
    - [3D models](https://support.vaira.app/en/vaira-office#3d-models)
    - [Symbols](https://support.vaira.app/en/vaira-office#symbols)
    - [APIs](https://support.vaira.app/en/vaira-office#apis)
    - [Troubleshooting](https://support.vaira.app/en/vaira-office#troubleshooting)
- [Glossary](https://support.vaira.app/en/glossary#main-content)

    - [A](https://support.vaira.app/en/glossary#a)
    - [B](https://support.vaira.app/en/glossary#b)
    - [C](https://support.vaira.app/en/glossary#c)
    - [E](https://support.vaira.app/en/glossary#e)
    - [F](https://support.vaira.app/en/glossary#f)
    - [I](https://support.vaira.app/en/glossary#i)
    - [K](https://support.vaira.app/en/glossary#k)
    - [O](https://support.vaira.app/en/glossary#o)
    - [S](https://support.vaira.app/en/glossary#s)
    - [T](https://support.vaira.app/en/glossary#t)
    - [V](https://support.vaira.app/en/glossary#v)
    - [W](https://support.vaira.app/en/glossary#w)

[![Vaira-Logo](https://support.vaira.app/hs-fs/hubfs/Vaira%20Design-Elemente/vaira%20logo%20top%20name%20bottom%20transparent.png?width=100&height=100&name=vaira%20logo%20top%20name%20bottom%20transparent.png "Vaira-Logo")](https://vaira.app)

Vaira UG (haftungsbeschränkt)  
Technologiepark 13  
33100 Paderborn

[Impressum](https://vaira.app/impressum)

<https://www.youtube.com/channel/UCmm_-1F1qeRlk25Y4gc82xw> <https://www.linkedin.com/company/34892117/> <https://www.facebook.com/VairaUG> <https://www.instagram.com/vaira.app/> <https://open.spotify.com/show/0triopkvbcf1vF8U3uPCau>

Copyright © 2026, Vaira UG (haftungsbeschränkt)