# Value Pattern

There are four types of scripts – {0}, {1}, {2} and {3} – to help you create combined values. You can use scripts within any word combinations. Simply write {0} and a tool will add the index value of only the class selected in the tree to your chosen property value.

**{0}** – adds the index value of the class selected in the tree.

**{1}** – adds the class name selected in the tree.

**{2}** – adds a number to the last value. This lets you auto-number elements by increasing the previous number by +1.

**{3}** – adds the current date and time.

<figure><img src="https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FWlzPq3nMr0a0cr1S9uFb%2FValue%20pattern.jpg?alt=media&#x26;token=6f08f0b6-4834-4a27-8fae-88c0f2501847" alt=""><figcaption></figcaption></figure>

**Some examples of how it works:**

Script: **{0} – Hello world**

Result: **23-17 13 15 23 – Hello world**

Script: **{0}-{1}**

Result: **23-17 13 15 23-Wood Casement Windows**

Script: **{1}**

Result: **Wood Casement Windows**

Script: **%%%{0}-{1}**

Result: **%%%23-17 13 15 23-Wood Casement**

**Windows**

Script: **Hello{0}**

Result: **Hello23-17 13 15 23**

Script: **Hello{0}world**

Result: **Hello23-17 13 15 23world**

Script: **Hello {0} world**

Result: **Hello 23-17 13 15 23 world**

To fix the number of digits in the numbering script {2}, specify the number of digits with a :, the letter D and the number.

Here is an example of auto-numbering with three digits.

Script: **{2:D3}**

Result: **001, 002, … , 010, 011, … , 100, 101, …**

And here is an example of a class title and auto-numbering with two digits.

Script: **{1}-{2:D2}**

Result: **Wood Casement Windows**-01, **Wood Casement Windows**-02, … , **Wood Casement Windows**-10, **Wood**

**Casement Windows**-11, … , **Wood Casement Windows**-99, **Wood Casement Windows**-100, **Wood Casement Windows**-

101, …

![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FJHJwq3tJndXouFnB4Z1A%2F2.png?alt=media)
