# Rule Creation for Custom Options

**Rule creation** - **This is an optional functionality (not mandatory)** and can be utilised on the basis of conditions. If you want to display the options conditionally on the product variants, you can utilize this option to add the required conditions.

This functionality allows you to display the EVS app's custom variants conditionally, both in conjunction with Shopify Options and the EVS app's Custom options.

**Step-1**: Click on **Create Rule**

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

**Step-2**: Add the details and select conditions according to your needs.

1. **Rule Name** – could be anything of your choice.
2. **Condition** – You can choose Any or All according to your requirement
3. **Add Condition for EVS options or for Shopify Options –** by selecting any options, you can control the visibility of the EVS app’s secondary/other options based on the conditions.
4. **Add Action** – you need to add a condition that is applied based on the selection of the previous option **(EVS options or Shopify Options – whichever is selected with the specified condition)**
5. Click done

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

**Step-3**: Click **Save** to finalize the changes. The functionality will work as shown in the attached video.

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

**If you need any assistance regarding the above configurations, please drop an email at <help@spicegems.com>**&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.spicegems.com/evs-easy-variation-swatches/custom-options/rule-creation-for-custom-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
