Back to Elasticsearch

Case

docs/reference/query-languages/esql/_snippets/functions/parameters/case.md

9.4.0479 B
Original Source

% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

Parameters

condition : A condition.

trueValue : The expression or value that’s returned when the corresponding condition is the first to evaluate to true. Can be a column reference or any other expression. The default value is returned when no condition matches.

elseValue : The value that’s returned when no condition evaluates to true.