mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
22 lines
597 B
Plaintext
22 lines
597 B
Plaintext
{
|
|
"name": "array_find",
|
|
"type": "function",
|
|
"groups": ["Arrays"],
|
|
"description": "Returns the lowest index (0 for the first one) of a value within an array. Returns -1 if the value is not found.",
|
|
"arguments": [{
|
|
"arg": "array",
|
|
"description": "an array"
|
|
}, {
|
|
"arg": "value",
|
|
"description": "the value to search"
|
|
}],
|
|
"examples": [{
|
|
"expression": "array_find(array('a', 'b', 'c'), 'b')",
|
|
"returns": "1"
|
|
}, {
|
|
"expression": "array_find(array('a', 'b', 'c', 'b'), 'b')",
|
|
"returns": "1"
|
|
}],
|
|
"tags": ["array", "found", "first", "lowest", "index"]
|
|
}
|