Browse Source

[DOCS] Explain ES|QL CASE behavior with even no. arguments (#101829)

Abdon Pijpelink 1 year ago
parent
commit
4a2ed90f92
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/reference/esql/functions/case.asciidoc

+ 2 - 1
docs/reference/esql/functions/case.asciidoc

@@ -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*