mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
22 lines
593 B
Plaintext
22 lines
593 B
Plaintext
{
|
|
"name": "array_get",
|
|
"type": "function",
|
|
"groups": ["Arrays"],
|
|
"description": "Returns the Nth value (0 for the first one) or the last -Nth value (-1 for the last one) of an array.",
|
|
"arguments": [{
|
|
"arg": "array",
|
|
"description": "an array"
|
|
}, {
|
|
"arg": "pos",
|
|
"description": "the index to get (0 based)"
|
|
}],
|
|
"examples": [{
|
|
"expression": "array_get(array('a','b','c'),1)",
|
|
"returns": "'b'"
|
|
}, {
|
|
"expression": "array_get(array('a','b','c'),-1)",
|
|
"returns": "'c'"
|
|
}],
|
|
"tags": ["array", "position", "index", "last", "nth", "one", "first"]
|
|
}
|