# Condition

### Description

A conditional command to run when a [StatusEffect](statuseffect) is applied. It can add or remove other [StatusEffects](statuseffect) depending on whether the condition is met.

<figure><img src="https://365310699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsszhq0oU5VbBUcBr6f13%2Fuploads%2FSMTBUixVjjlfj7sn7i2K%2FConditions-4.0.0.gif?alt=media&#x26;token=471c60f2-9ad4-4a73-9284-6dfeb21eef5e" 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="../scriptable-objects/statuseffectdata">StatusEffectData</a></td><td>The <a href="../scriptable-objects/statuseffectdata">StatusEffectData</a> that is searched for in the target.</td></tr><tr><td><code>SearchableComparableName</code></td><td><a href="../scriptable-objects/comparablename">ComparableName</a></td><td>The <a href="../scriptable-objects/comparablename">ComparableName</a> that is searched for in the target.</td></tr><tr><td><code>SearchableGroup</code></td><td><a href="../structs/statuseffectgroup">StatusEffectGroup</a></td><td>The <a href="../structs/statuseffectgroup">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="../scriptable-objects/statuseffectdata">StatusEffectData</a></td><td>The <a href="../scriptable-objects/statuseffectdata">StatusEffectData</a> that can be added or removed.</td></tr><tr><td><code>ActionComparableName</code></td><td><a href="../scriptable-objects/comparablename">ComparableName</a></td><td>The <a href="../scriptable-objects/comparablename">ComparableName</a> that can be removed.</td></tr><tr><td><code>ActionGroup</code></td><td><a href="../structs/statuseffectgroup">StatusEffectGroup</a></td><td>The <a href="../structs/statuseffectgroup">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="statuseffect">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>

