More examples for the expression function help

This commit is contained in:
Matthias Kuhn 2015-09-20 13:59:54 +02:00
parent b2c404d17c
commit 2a6cff403b
2 changed files with 5 additions and 2 deletions

View File

@ -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'"}]
}

View File

@ -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>