Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/_help/mcp-servers/runtime-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ outputs:
> String interpolation only works with dot notation expressions. JMESPath expressions (containing `[*]`, `[0]`, functions, etc.) are resolved as a whole and cannot be combined with other expressions in the same string.
{: .warning}

## Conditions
## Action conditions

Expressions inside `when` clauses are resolved, then evaluated with standard operators.
Actions defined in a step can use expressions variables inside then `when` clause. Those are resolved, then evaluated with standard operators.

```yaml
actions:
Expand All @@ -288,6 +288,8 @@ actions:

Supported operators: `==`, `!=`, `>`, `<`, `>=`, `<=`, `AND`, `OR`, `!`.

> JMESPath functions are not supported inside action conditions. You should only use expression variables with a comparaison operator. You can however, use a function in a step `outputs` and then use the output in the condition, i.e. `$step.my-step.outputs.aggregated-result > 10`.
{: .warning}

## Complete example

Expand Down
Loading