mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
More examples for the expression function help
This commit is contained in:
parent
b2c404d17c
commit
2a6cff403b
@ -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' → 'Here and there' </pre>
|
||||
<pre> 'Nothing' || NULL → NULL </pre>
|
||||
<pre> 'Dia: ' || "Diameter" → 'Dia: 25' </pre>
|
||||
<pre> 1 || 2 → '12' </pre>
|
||||
|
Loading…
x
Reference in New Issue
Block a user