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

# BIS_fnc_sideIsFriendly

*Function · Sides · Arma 3 v1.56*

## Description

Determines if side B is friendly to side A the way the game engine does it. The relationship table can be found here:  Side Relations.

## Syntax

```sqf
[sideA, sideB] call BIS_fnc_sideIsFriendly
```

**Parameters:**

- `sideA`: [Side](../topics/Side.md)
- `sideB`: [Side](../topics/Side.md)

**Returns:** [Boolean](../topics/Boolean.md) - true if side B is friendly to side A.

## Examples

### Example 1

```sqf
private _isFriendly = [west, east] call BIS_fnc_sideIsFriendly; //Checks if EAST is friendly to WEST.
```

## See also

[getFriend](../commands/getFriend.md) · [setFriend](../commands/setFriend.md) · [BIS_fnc_sideIsEnemy](../functions/BIS_fnc_sideIsEnemy.md) · Side Relations

<sub>Source: [BI Community Wiki — BIS fnc sideIsFriendly](https://community.bistudio.com/wiki/BIS_fnc_sideIsFriendly) (revision 349197).</sub>
