# Filter value

The filter_value object represents a single value of a filter object.

The `filter_value` object represents a single value of a [filter object](https://developer.versacommerce.de/articles/liquid-objects-filter).

All attributes except `param_name` and `value` only apply to filters of type `list`.

It has the following properties:

## filter_value.active

Returns whether the filter value is active: `true` or `false`.

## filter_value.count

Returns how many results match the filter value. Returns a [number](https://developer.versacommerce.de/articles/liquid-basics-types#number).

## filter_value.label

Returns the customer-facing label of the filter value, for example `Red` or `Rouge`.

## filter_value.param_name

Returns the parameter name of the filter the value belongs to, for example `filter.v.option.color`.

Filters of type `price_range` also contain an extra component that depends on the source of the `filter_value`.

If the `filter_value` of a `price_range` filter is `min_value`, this is returned:

```text
filter.v.price.gte
```

If the `filter_value` of a `price_range` filter is `max_value`, this is returned:

```text
filter.v.price.lte
```

## filter_value.url_to_add

Returns the current page URL with the parameter of the filter value added.

The page URL parameter is removed.

## filter_value.url_to_remove

Returns the current page URL with the parameter of the filter value removed.

The page URL parameter is removed.

## filter_value.value

Returns the value.
