> 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/2.0.0/type-specifics/classes/condition.md).

# Condition

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

### Description

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

### Properties

<table data-header-hidden data-full-width="false"><thead><tr><th width="282"></th><th></th></tr></thead><tbody><tr><td>SearchableConfigurable</td><td>The ConditionalConfigurable enum that selects how to search.</td></tr><tr><td>SearchableData</td><td>The <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> that is searched for in the target.</td></tr><tr><td>SearchableComparableName</td><td>The <a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a> that is searched for in the target.</td></tr><tr><td>SearchableGroup</td><td>The <a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a> that is searched for in the target.</td></tr><tr><td>Exists</td><td>The bool to check if the searchable exists or doesn't exist.</td></tr><tr><td>Add</td><td>The bool to add or remove the configurable type.</td></tr><tr><td>Scaled</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>UseStacks</td><td>If false and removing effects it will remove all instead of a set amount.</td></tr><tr><td>Stacks</td><td>The stack count to add or remove.</td></tr><tr><td>ActionConfigurable</td><td>The ConditionalConfigurable enum that selects how to remove.</td></tr><tr><td>ActionData</td><td>The <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> that can be added or removed.</td></tr><tr><td>ActionComparableName</td><td>The <a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a> that can be removed.</td></tr><tr><td>ActionGroup</td><td>The <a href="/pages/yHh71i6DLa292qCBRnk1">StatusEffectGroup</a> that can be removed.</td></tr><tr><td>Timing</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>Duration</td><td>If Duration is selected in the ConditionalTiming enum this float value will be used.</td></tr></tbody></table>
