-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CASE and CASE ELSE to expression builder groups
- Use readAll() for function help to preserve html
- Loading branch information
Showing
3 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<h3>CASE statement</h3> | ||
A conditional statement that can be used to evaluate exissions and | ||
return a result. | ||
|
||
<h4>Syntax</h4> | ||
<pre> | ||
CASE | ||
WHEN <i>expression</i> THEN <i>result</i> | ||
[ ...n ] | ||
ELSE <i>result</i> | ||
END | ||
</pre> | ||
[ ] marks optional statements | ||
|
||
|
||
<h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> WHEN expression</i> - The expression to evaluate. <br> | ||
<i> THEN result</i> - If <i>expression</i> evaluates True then <i>result</i> is returned. <br> | ||
<i> ELSE result</i> - If <i>expression</i> evaluates False then <i>result</i> is returned. <br> | ||
|
||
|
||
|
||
<h4>Example</h4> | ||
<!-- Show example of function.--> | ||
<pre> | ||
CASE | ||
WHEN <i>"column" IS NULL</i> THEN <i>'None'</i> | ||
ELSE <i>"column"</i> | ||
END | ||
</pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<h3>CASE statement</h3> | ||
A conditional statement that can be used to evaluate exissions and | ||
return a result. | ||
|
||
<h4>Syntax</h4> | ||
<pre> | ||
CASE | ||
WHEN <i>expression</i> THEN <i>result</i> | ||
[ ...n ] | ||
[ ELSE <i>result</i> ] | ||
END | ||
</pre> | ||
[ ] marks optional statements | ||
|
||
|
||
<h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> WHEN expression</i> - The expression to evaluate. <br> | ||
<i> THEN result</i> - If <i>expression</i> evaluates True then <i>result</i> is returned. <br> | ||
<i> ELSE result</i> - If <i>expression</i> evaluates False then <i>result</i> is returned. <br> | ||
|
||
|
||
|
||
<h4>Example</h4> | ||
<!-- Show example of function.--> | ||
<pre> | ||
CASE | ||
WHEN <i>"column" IS NULL</i> THEN <i>'None'</i> | ||
END | ||
</pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters