> 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/condition.md).

# Condition

### Description

A conditional command to run when a [StatusEffect](/status-effects-framework/type-specifics/classes/statuseffect.md) is applied. It can add or remove other [StatusEffects](/status-effects-framework/type-specifics/classes/statuseffect.md) depending on whether the condition is met.

<figure><img src="/files/vdCBH0jAUXwZCMd7Qzmf" alt=""><figcaption></figcaption></figure>

### Properties

<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>SearchableConfigurable</code></td><td>ConditionalConfigurable</td><td>The ConditionalConfigurable enum that selects how to search.</td></tr><tr><td><code>SearchableData</code></td><td><a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a></td><td>The <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> that is searched for in the target.</td></tr><tr><td><code>SearchableComparableName</code></td><td><a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a></td><td>The <a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a> that is searched for in the target.</td></tr><tr><td><code>SearchableGroup</code></td><td><a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a></td><td>The <a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a> that is searched for in the target.</td></tr><tr><td><code>Exists</code></td><td>bool</td><td>The bool to check if the searchable exists or doesn't exist.</td></tr><tr><td><code>Add</code></td><td>bool</td><td>The bool to add or remove the configurable type.</td></tr><tr><td><code>Scaled</code></td><td>bool</td><td>If true it will multiply the Stacks value by how many stacks of the current effect are being added.</td></tr><tr><td><code>UseStacks</code></td><td>bool</td><td>If false and removing effects it will remove all instead of a set amount.</td></tr><tr><td><code>Stacks</code></td><td>int</td><td>The stack count to add or remove.</td></tr><tr><td><code>ActionConfigurable</code></td><td>ConditionalConfigurable</td><td>The ConditionalConfigurable enum that selects how to remove.</td></tr><tr><td><code>ActionData</code></td><td><a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a></td><td>The <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> that can be added or removed.</td></tr><tr><td><code>ActionComparableName</code></td><td><a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a></td><td>The <a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a> that can be removed.</td></tr><tr><td><code>ActionGroup</code></td><td><a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a></td><td>The <a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a> that can be removed.</td></tr><tr><td><code>Timing</code></td><td>ConditionalTiming</td><td>The ConditionalTiming enum that determines what kind of timing should be applied to the added <a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a>.</td></tr><tr><td><code>Duration</code></td><td>float</td><td>If Duration is selected in the ConditionalTiming enum this float value will be used.</td></tr></tbody></table>
