# GetFirstStatusEffect

### Declaration

{% code overflow="wrap" fullWidth="true" %}

```csharp
public StatusEffect GetFirstStatusEffect(StatusEffectGroup? group = null, ComparableName? name = null, StatusEffectData? data = null)
```

{% endcode %}

### Parameters

<table data-full-width="true"><thead><tr><th width="250">Name</th><th width="250">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>group</code></td><td><a href="../../structs/statuseffectgroup">StatusEffectGroup</a></td><td>The <a href="../../structs/statuseffectgroup">StatusEffectGroup</a> to select in the effect list.</td></tr><tr><td><code>name</code></td><td><a href="../../scriptable-objects/comparablename">ComparableName</a></td><td>The <a href="../../scriptable-objects/comparablename">ComparableName</a> of the effect to select in the effect list.</td></tr><tr><td><code>data</code></td><td><a href="../../scriptable-objects/statuseffectdata">StatusEffectData</a></td><td>The <a href="../../scriptable-objects/statuseffectdata">StatusEffectData</a> to select in the effect list.</td></tr></tbody></table>

### Returns

[**StatusEffect**](https://maraudical.gitbook.io/status-effect-framework/type-specifics/classes/statuseffect) Returns the first status effect in this [StatusManager](https://maraudical.gitbook.io/status-effect-framework/type-specifics/classes/statusmanager) with the given filters. Returns null if none are found.

### Description

Searches this [StatusManager](https://maraudical.gitbook.io/status-effect-framework/type-specifics/classes/statusmanager) for an effect with the given filters. If a group, name, or data is given then only an effect with the same group, name, and data will be selected.
