# One of set

{% hint style="warning" %}
The feature is available for [paid TestMace subscribers](https://testmace.com/pricing/) only.
{% endhint %}

The **One of set assertion** interface is as follows:

![](https://1550208191-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYfhIaTTw23Sf3L5jfe%2F-M4OIW9UBqfD2Ba8hxxb%2F-M4OJnBF8LwjQ12YgXnK%2Fimage.png?alt=media\&token=a7f6b2b8-fcbd-445e-b327-839ba25bbaa9)

This assertion type is used to ensure if the current value equals to one value from the specified set. In the `Expected value type` field you should specify the type of values you want to compare (strings, numbers or JSON objects).

In the `Expected value` field you should set a list of pissible expected values

The `Use negative statement` flag is used for getting the opposite result, i.e. the current value shouldn't exist in the specified set.

### Error Fixing

The error fixing algorithm depends on the `Use negative statement` flag's state:

* false - the current value is added to the list
* true - the current value is removed from the list
