---
name: "BIS_fnc_returnNestedElement"
type: function
status: ok
groups: ["Arrays"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_returnNestedElement
revid: 327552
updated: 2022-07-12T22:38:17Z
---

# BIS_fnc_returnNestedElement

*Function · Arrays · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Function to return an item at a path in an array.

## Syntax

```sqf
[array, path] call BIS_fnc_returnNestedElement
```

**Parameters:**

- `array`: [Array](../topics/Array.md)
- `path`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s

**Returns:** [Anything](../topics/Anything.md) - [nil](../commands/nil.md) if path is incorrect

## Examples

### Example 1

```sqf
private _array = [[1, 2], [3, 4]];
_value = [_array, [0, 1]] call BIS_fnc_returnNestedElement; // returns 2
```

## See also

[BIS_fnc_findNestedElement](../functions/BIS_fnc_findNestedElement.md) · [BIS_fnc_findAllNestedElements](../functions/BIS_fnc_findAllNestedElements.md) · [BIS_fnc_removeNestedElement](../functions/BIS_fnc_removeNestedElement.md) · [BIS_fnc_setNestedElement](../functions/BIS_fnc_setNestedElement.md)

<sub>Source: [BI Community Wiki — BIS fnc returnNestedElement](https://community.bistudio.com/wiki/BIS_fnc_returnNestedElement) (revision 327552).</sub>
