---
name: "BIS_fnc_tridentExecute"
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_tridentExecute
revid: 348481
updated: 2023-11-08T13:00:28Z
---

# BIS_fnc_tridentExecute

*Function · Sides · Arma 3 v1.00*

## Description

Execute a code based on Trident relationship.

## Syntax

```sqf
[side_1, side_2, codeFriendly, codeEnemy] call BIS_fnc_tridentExecute
```

**Parameters:**

- `side_1`: [Side](../topics/Side.md)
- `side_2`: [Side](../topics/Side.md)
- `codeFriendly`: [Code](../topics/Code.md) - code executed when sides are friendly. Arguments passed to the code are:
  - 0: [Side](../topics/Side.md) - Side with higher score (when the score is even, side from param 0 is used)
  - 1: [Side](../topics/Side.md) - Side with lower score (when the score is even, side from param 1 is used)
  - 2: [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when the sides are allied
- `codeEnemy`: [Code](../topics/Code.md) - code executed when sides are enemy

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when the sides are allied

## Examples

### Example 1

```sqf
[west, east, { params ["_higherScore", "_lowerScore", "_areAllied"] }] call BIS_fnc_tridentExecute;
```

## See also

[BIS_fnc_tridentGetRelationship](../functions/BIS_fnc_tridentGetRelationship.md) · [BIS_fnc_tridentHandleDamage](../functions/BIS_fnc_tridentHandleDamage.md) · [BIS_fnc_tridentSetRelationship](../functions/BIS_fnc_tridentSetRelationship.md)

<sub>Source: [BI Community Wiki — BIS fnc tridentExecute](https://community.bistudio.com/wiki/BIS_fnc_tridentExecute) (revision 348481).</sub>
