{
"name": "CASE",
"type": "expression",
"groups": ["Conditionals"],
"description": "CASE is used to evaluate a series of conditions and return a result for the first condition met. The conditions are evaluated sequentially, and if a condition is true, the evaluation stops, and the corresponding result is 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
[ \u2026n ]
[ ELSE result ]
END