Skip to content

Commit

Permalink
[DOCS] Explain ES|QL CASE behavior with even no. arguments (elastic#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonpijpelink authored Nov 7, 2023
1 parent 34d0391 commit 4a2ed90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reference/esql/functions/case.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Accepts pairs of conditions and values. The function returns the value that
belongs to the first condition that evaluates to `true`.

If the number of arguments is odd, the last argument is the default value which
is returned when no condition matches.
is returned when no condition matches. If the number of arguments is even, and
no condition matches, the function returns `null`.

*Example*

Expand Down

0 comments on commit 4a2ed90

Please sign in to comment.