Skip to content

Commit

Permalink
More examples for the expression function help
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 20, 2015
1 parent b2c404d commit 2a6cff4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/function_help/json/concat
@@ -1,10 +1,12 @@
{
"function": "concat",
"description": "Concatenates several strings to one. NULL values are converted to empty strings.",
"description": "Concatenates several strings to one. NULL values are converted to empty strings. Other values (like numbers) are converted to strings.",
"variableLenArguments": true,
"arguments": [ {"arg":"string1", "syntaxOnly": true},
{"arg":"string2", "syntaxOnly": true},
{"arg":"string", "descOnly": true, "description":"a string value"}],
"examples": [ { "expression":"concat('a','b','c','d','e')", "returns":"'abcde'"},
"examples": [ { "expression":"concat('sun', 'set')", "returns":"'sunset'"},
{ "expression":"concat('a','b','c','d','e')", "returns":"'abcde'"},
{ "expression":"concat('Anno ', 1984)", "returns":"'Anno 1984'"},
{ "expression":"concat('The Wall', NULL)", "returns":"'The Wall'"}]
}
1 change: 1 addition & 0 deletions resources/function_help/text/||
Expand Up @@ -11,4 +11,5 @@ None
<h4>Examples</h4>
<pre> 'Here ' || 'and ' || 'there' &rarr; 'Here and there' </pre>
<pre> 'Nothing' || NULL &rarr; NULL </pre>
<pre> 'Dia: ' || "Diameter" &rarr; 'Dia: 25' </pre>
<pre> 1 || 2 &rarr; '12' </pre>

0 comments on commit 2a6cff4

Please sign in to comment.