# Int Range Attribute

The **IntRangeAttribute** is used to capture an integer from a defined set of possible values. The MinValue and MaxValue attributes are mandatory.

## Example

### XML

```xml
<IntRangeAttribute Name="Probability" MinValue="1" MaxValue="10" Values="1,3,5,7,10"/>
```

### Appearance

<figure><img src="https://1513434666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MTuDV9CT1fe_nPqwVF4%2Fuploads%2F9mbyvhhQDwUc5CcYRTYK%2FScreenshot%202024-04-19%20155136.png?alt=media&#x26;token=541921c9-b86d-4362-96d9-787180503cbd" alt=""><figcaption></figcaption></figure>

### XML Attributes

#### MinValue (required)

The minimal value that can be assigned.

#### MaxValue (required)

The maximal value that can be assigned.

#### Default Value

The value given to the attribute when the Document Object is created. The default value is 0 (zero). The value must be within the Min/Max Range.

#### Values

The limited integer values separated by comma that may be assigned to the field. If not defined, all values between MinValue and MaxValue are used.

Example: Given MinValue="1" MaxValue="100" Values="1,25,50,75,100", the user will be able to select one of the values 1, 25, 50, 75 and 100.&#x20;
