Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/content/docs/ruleset-engine/rules-language/values.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ It is not possible to define your own arrays. You can only use arrays returned b

<Render
file="rules-language-missing-value-behavior"
params={{ one: "an out-of-bounds array index" }}
params={{ errorDescription: "an out-of-bounds array index" }}
/>

You can only use `[*]` multiple times in the same expression if applied to the same array. Also, you can only use `[*]` in the first argument of a function call.
Expand Down Expand Up @@ -217,7 +217,7 @@ It is not possible to define your own maps. You can only use maps returned by fi

<Render
file="rules-language-missing-value-behavior"
params={{ one: "a non-existing key in a map" }}
params={{ errorDescription: "a non-existing key in a map" }}
/>

## Lists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
inputParameters: errorDescription

params:
- errorDescription
---

import { Markdown } from "~/components"

Accessing {props.one} produces a "missing value". A missing value has the following behavior:
Accessing {props.errorDescription} produces a "missing value". A missing value has the following behavior:

* Any comparison `<expr> <op> <literal>` where `<expr>` evaluates to a missing value will evaluate to false.
* Function calls like `function(<expr>)`, where `<expr>` evaluates to a missing value, will return a missing value in most cases, but the exact behavior can vary per function.
- Any comparison `<expr> <op> <literal>` where `<expr>` evaluates to a missing value will evaluate to false.
- Function calls like `function(<expr>)`, where `<expr>` evaluates to a missing value, will return a missing value in most cases, but the exact behavior can vary per function.
Loading