{
"name": "CASE",
"type": "expression",
"groups": ["Conditionals"],
"description": "CASE is used to evaluate a series of conditions and return a result for the first condition that is met. The conditions are evaluated sequentially, and if a condition is true, the evaluation will stop, and the corresponding result will be returned. If none of the conditions are true, the value in the ELSE clause is returned. Furthermore, if no ELSE clause is set and none of the conditions are met, NULL is returned.
CASE[ ] marks optional components
WHEN condition THEN result
[ …n ]
[ ELSE result ]
END