---
name: "BIS_fnc_version"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_version
revid: 353287
updated: 2024-03-15T17:03:27Z
---

# BIS_fnc_version

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

## Description

Detects which **Arma 2** expansions and addons are available. Only works in Arma 2/Arma 2: Operation Arrowhead.

> [!NOTE]
> arma2acr is not detected by this function.

## Syntax

```sqf
call BIS_fnc_version
```

**Returns:** [Array](../topics/Array.md) of [Number](../topics/Number.md)s - can contain:
- 0: Arma 2
- 1: Arma 2: Operation Arrowhead
- 2: arma2baf
- 4: arma2pmc

## Examples

### Example 1

```sqf
private _availableExpansions = call BIS_fnc_version;
```

### Example 2

```sqf
private _playerHasPMC = 4 in (call BIS_fnc_version);
```

## See also

[productVersion](../commands/productVersion.md) · [requiredVersion](../commands/requiredVersion.md)

<sub>Source: [BI Community Wiki — BIS fnc version](https://community.bistudio.com/wiki/BIS_fnc_version) (revision 353287).</sub>
