> For the complete documentation index, see [llms.txt](https://docs.simplio3d.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.simplio3d.com/learning-the-app/products/create-options/restrictions/the-variant-value-is-between-min-and-max-type-of-restriction.md).

# 'The variant value is between min and max' type of restriction

Constraints using ranges

The platform allows users to add constraints to a range using the "Numeral" option block. In other words, you can restrict the ability to show or hide options in the configurator, depending on the input number. For example, you can have 2 extra colors: red and yellow on a cabinet only between 100 cm and 200 cm wide.

Once you understand how to create these constraints using numerical variants, you can apply them in many situations.

Let's take the example below on a closet storage cabinet. I want to limit the **color** variants to a range in the numeric **Width** variant.

We have a basic 3D closet configurator with the following option blocks: Size and Material (Colors).

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FcUZG2NyGsutE0XQTEgVD%2FScreenshot%202025-02-07%20at%2017.45.43.png?alt=media&amp;token=daef63fd-6db9-48ce-ad91-a047542ac6e3" alt=""><figcaption><p>'Size' and 'Material' blocks</p></figcaption></figure>

We want to allow color selection only between a minimum and maximum range found in the **Size** numeric block. Since this restriction will impact the **Material** option block, we click on it and apply the constraint to the color variant.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FBEHWmwXsDm86aMkx3GWb%2FScreenshot%202025-02-07%20at%2018.02.44.png?alt=media&amp;token=e8e0bcea-1cf8-4eb8-89e7-e5c8a4426034" alt=""><figcaption><p>Click the 'chain' icon to apply a constraint</p></figcaption></figure>

We take again the regular expression, except when it comes to selecting the type of restriction.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FzREFQtcoU4e5FfmiNT5Q%2FScreenshot%202025-02-17%20at%2010.03.24.png?alt=media&amp;token=1e2f5719-7f5e-446f-aa16-b9f0aab68e88" alt=""><figcaption><p>Select the type of the restriction</p></figcaption></figure>

After selecting the constraint type, we select 'Size', i.e. the Numeral option set, and click on the "width" option to display the range.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F9jhSc3u10oBcawwihjYp%2FScreenshot%202025-02-17%20at%2010.09.17.png?alt=media&amp;token=a30255f7-05b8-4dc9-8cb2-baad14534c22" alt=""><figcaption><p>Select option set and variant(s)</p></figcaption></figure>

In "Has value between" we set the minimum and maximum range in which we want to show the "colors". In this example, we set the minimum to 200 and leave the maximum at 280 and click 'Save'.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FhAtwi66MfoqFgWaxuQtu%2FScreenshot%202025-02-17%20at%2010.14.55.png?alt=media&amp;token=b17ef420-bd9c-4a82-89a7-1e2d48989ea7" alt=""><figcaption><p>Set the constraint within a range</p></figcaption></figure>

After clicking "Save", at this point, we have an "asterisk" displayed next to the chain icon, which means that this "colors" variant has an added restriction.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F1KVFRHk6H5bS162B32M9%2FScreenshot%202025-02-17%20at%2010.20.02.png?alt=media&amp;token=e531a73c-72b2-42a0-a879-3aabadf06f6e" alt=""><figcaption><p>Restriction added</p></figcaption></figure>

You must save the updated "Colors" options block before clicking "Preview" to see the effect.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FQrs6B4JE35V5oj1ToTfv%2FScreenshot%202025-02-17%20at%2010.22.53.png?alt=media&amp;token=27b3ab3e-8653-4459-bb04-ebca10b1fe23" alt=""><figcaption><p>Click to preview the configurator</p></figcaption></figure>

Once you click on the "Preview" button, due to the added restriction, by default the colors will not be enabled (visible). Only if you change the width of the cabinet and go above 200 cm will the color option be enabled as shown below.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2Frg1e6vLHZQsjyHVXD3Vi%2FScreenshot-2025-02-17-at-10.27.24.png?alt=media&amp;token=f8b97858-bbc9-4210-8c99-018618731ab7" alt=""><figcaption><p>Changing the width will enable the color option</p></figcaption></figure>

{% hint style="info" %}
**Notice that no color/texture is applied to the front doors, the texture is only applied after the "Colors" option set is displayed. You can modify this by using 2 or more restrictions in combination, depending on the type of configurator you have.**
{% endhint %}
