> For the complete documentation index, see [llms.txt](https://maraudical.gitbook.io/status-effects-framework/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maraudical.gitbook.io/status-effects-framework/type-specifics/classes/statusmanager/getfirststatuseffect.md).

# 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="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a></td><td>The <a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a> to select in the effect list.</td></tr><tr><td><code>name</code></td><td><a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a></td><td>The <a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a> of the effect to select in the effect list.</td></tr><tr><td><code>data</code></td><td><a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a></td><td>The <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> to select in the effect list.</td></tr></tbody></table>

### Returns

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

### Description

Searches this [StatusManager](/status-effects-framework/type-specifics/classes/statusmanager.md) 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.
