---
name: "BIS_fnc_configPath"
type: function
status: ok
groups: ["Configs"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_configPath
revid: 327973
updated: 2022-07-13T14:34:58Z
---

# BIS_fnc_configPath

*Function · Configs · Arma 3 v1.00*

## Description

Returns config path to given entry in given format.

## Syntax

```sqf
[config, format, strict] call BIS_fnc_configPath
```

**Parameters:**

- `config`: [Array](../topics/Array.md), [String](../topics/String.md) or [Config](../topics/Config.md) - input config
- `format`: [Array](../topics/Array.md), [String](../topics/String.md) or [Config](../topics/Config.md) - (Optional, default `[]` or `configNull` if *config* is [Array](../topics/Array.md) - see [#Example 1](../functions/BIS_fnc_configPath.md#example-1)) desired format of output
- `strict`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) if false, the function will not attempt to construct a valid config before certain format conversions (see [#Example 2](../functions/BIS_fnc_configPath.md#example-2)).
  Set this param to [true](../commands/true.md) to invoke the strict mode

**Returns:** [Array](../topics/Array.md), [String](../topics/String.md) or [Config](../topics/Config.md)

## Examples

### Example 1

```sqf
["configFile >> ""CfgVehicles"" >> ""Car"""] call BIS_fnc_configPath; // ["configFile","CfgVehicles","Car"]
```

### Example 2

```sqf
[["mary", "had", "a", "little", "lamb"], ""] call BIS_fnc_configPath; // "mary >> ""had"" >> ""a"" >> ""little"" >> ""lamb"""
```

### Example 3

```sqf
[["configFile","CfgVehicles","Car"]] call BIS_fnc_configPath; // bin\config.cpp/CfgVehicles/Car
```

### Example 4

```sqf
["bin\config.cpp/CfgVehicles/Car"] call BIS_fnc_configPath; // ["configFile","CfgVehicles","Car"]
```

### Example 5

```sqf
[configFile >> "CfgVehicles" >> "Car", ""] call BIS_fnc_configPath; // "configFile >> ""CfgVehicles"" >> ""Car"""
```

### Example 6

```sqf
["bin\config.cpp/CfgVehicles/Car", "", true] call BIS_fnc_configPath; // "configFile >> ""CfgVehicles"" >> ""Car"""
```

### Example 7

```sqf
["bin\config.cpp/CfgVehicles/Car", ""] call BIS_fnc_configPath; // "bin\config.cpp/CfgVehicles/Car"
```

### Example 8

```sqf
[["mary", "had", "a", "little", "lamb"], "", true] call BIS_fnc_configPath; // "" invalid config
```

## See also

[configHierarchy](../commands/configHierarchy.md)

<sub>Source: [BI Community Wiki — BIS fnc configPath](https://community.bistudio.com/wiki/BIS_fnc_configPath) (revision 327973).</sub>
