This commit is contained in:
Joel Wetzell
2026-05-17 21:12:04 -05:00
parent 69bc31d3f1
commit 8e6cd58006
82 changed files with 642 additions and 450 deletions
+7 -4
View File
@@ -1,19 +1,22 @@
---
title: Execute Expr Expression
sidebar:
label: Expr
order: 2
label: Expr
order: 2
---
The processor will execute the provided Expr expression and return the result as the new payload. This processor will return an error if the expression cannot be executed or if there is an error during execution. The expression will have access to the [wrapped payload](/concepts/payloads).
- **type**: `script.expr`
- **params**:
- **expression**: the Expr expressiont to execute.
- **expression**: the Expr expressiont to execute.
### Example
This example will add 1 to the wrapped payload.
```yaml
- type: script.expr
params:
expression: "Payload + 1"
```
```