# Einfacher Modus

{% hint style="danger" %}
Bei der Preis- und Gewichtsberechnung muss das Ergebnis einer Formel immer ein numerischer Wert sein. Bei der Validierung muss das Ergebnis immer ein Wahrheitswert / boolescher (true / false) Wert sein.
{% endhint %}

#### Operatoren

Im einfachen Modus stehen die Logikoperatoren und arithmetische Operatoren zur Verfügung. Dazu kann mit runden Klammern das Ergebnis angepasst werden.

| Name                             | Operator     |                                                                                                                                                               |
| -------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Multiplizieren                   | \*           |                                                                                                                                                               |
| Didivdieren                      | /            |                                                                                                                                                               |
| Addieren                         | +            |                                                                                                                                                               |
| Subtrahieren                     | -            |                                                                                                                                                               |
| Größer gleich / Größer           | < = <        | **Immer ein Leerzeichen hinter dem < -Zeichen lassen!**                                                                                                       |
| Kleiner gleich / Kleiner         | >= >         |                                                                                                                                                               |
| Gleich                           | ==           |                                                                                                                                                               |
| Ungleich                         | !=           |                                                                                                                                                               |
| Und                              | &&           |                                                                                                                                                               |
| Oder                             | \|\|         |                                                                                                                                                               |
| Preis als Brutto-Preis markieren | brutto(1.19) | <p>Der Produkt-Steuersatz wird verwendet.<br>In einem Brutto-Shop wird der Preis als 1,19 Euro dargestellt, in einem Netto-Shop in 1,00 Euro umgerechnet.</p> |
| Preis als Netto-Preis markieren  | netto(1.00)  | <p>Der Produkt-Steuersatz wird verwendet.<br>In einem Brutto-Shop wird der Preis in 1,19 Euro umgerechnet, in einem Netto-Shop als 1,00 Euro angezeigt </p>   |

#### Bruttopreise / Nettopreise hinterlegen - Preise steuersensitiv ausspielen

<table><thead><tr><th>Name</th><th width="462.5688729874776">Operator</th></tr></thead><tbody><tr><td>Preis als Brutto-Preis markieren</td><td><pre><code>brutto(2.40)
brutto("fields.auswahl.price")
</code></pre><p>Sowohl <strong>brutto</strong> als auch <strong>gross</strong> werden als Operator-Name unterstützt:</p><pre><code>gross(2.40)
gross("fields.auswahl.price")
</code></pre></td></tr><tr><td>Preis als Netto-Preis markieren</td><td><pre><code>netto(2.40)
netto("fields.auswahl.price")
</code></pre><p>Sowohl <strong>net</strong> als auch <strong>netto</strong> werden als Operator-Name unterstützt:</p><pre><code>net(2.40)
net("fields.auswahl.price")
</code></pre></td></tr></tbody></table>

{% hint style="info" %}
If / else Bedingungen stehen nur im Profimodus zur Verfügung
{% endhint %}

#### Formelbeispiel: Preis eines Auswahlfeldes + (eingegebene Länge \*10)

```json5
fields.buttons.price + (fields.laenge.value * 10)
```

#### Formelbeispiel: Validierung eines Feldes

```
fields.breite.value > 100
```

Das ist die beispielhafte Formel einer Feldvaldierung, die Bezug auf ein anderes Feld nimmt. Das betroffene Feld (z.B. die Länge) ist nur gültig, wenn das Feld "Breite" > 100 ist.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neonlines.de/artikel-konfigurator/grundlegendes/formeleditor/einfacher-modus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
