Skip to content
Permalink
Browse files

More examples for the expression function help

  • Loading branch information
m-kuhn committed Sep 20, 2015
1 parent b2c404d commit 2a6cff403be015ae12243741cf30dfc388cb199c
Showing with 5 additions and 2 deletions.
  1. +4 −2 resources/function_help/json/concat
  2. +1 −0 resources/function_help/text/||
@@ -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'"}]
}
@@ -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.
You can’t perform that action at this time.