---
name: "BIS_fnc_areFriendly"
type: function
status: ok
groups: ["Sides"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_areFriendly
revid: 349194
updated: 2023-11-08T14:50:41Z
---

# BIS_fnc_areFriendly

*Function · Sides · Arma 3 v1.00*

## Description

Function that takes two [Side](../topics/Side.md)s and compares them, returning whether they are friendly or not.

## Syntax

```sqf
[side1, side2] call BIS_fnc_areFriendly
```

**Parameters:**

- `side1`: [Side](../topics/Side.md) - first side, will be compared to second side.
- `side2`: [Side](../topics/Side.md) - second side, will be compared to first side.

**Returns:** [Boolean](../topics/Boolean.md) - true if sides are friendly to each other, false if not.

## Examples

### Example 1

```sqf
private _areFriendly = [west, east] call BIS_fnc_areFriendly;
```

## See also

[getFriend](../commands/getFriend.md) · [BIS_fnc_sideIsFriendly](../functions/BIS_fnc_sideIsFriendly.md) · [BIS_fnc_sideIsEnemy](../functions/BIS_fnc_sideIsEnemy.md)

<sub>Source: [BI Community Wiki — BIS fnc areFriendly](https://community.bistudio.com/wiki/BIS_fnc_areFriendly) (revision 349194).</sub>
