# Using an Action to format Title

**URL:** <https://community.mp3tag.de/t/using-an-action-to-format-title/18617>\
**Category:** General Discussion\
**Created:** [January 17, 2017, 1:58am UTC](https://community.mp3tag.de/t/using-an-action-to-format-title/18617 "2017-01-17T01:58:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wesley555](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/4da419/32.png) [@wesley555](https://community.mp3tag.de/u/wesley555)\
**Post date:** [January 17, 2017, 1:58am UTC](https://community.mp3tag.de/t/using-an-action-to-format-title/18617/1 "2017-01-17T01:58:18Z")

</div>

I am trying to write an Action that will output the Title format

01a, 01b, 01c ... 01x,01y

Where 01 is the disc number and the letter increments.

I am using  
$num(%discnumber%,2)$char($add(96,$num(%\_counter%)))

Since %\_counter% always starts at 1. I add 96 to the %\_counter% to get 97 which is the decimal equivalent for the letter "a" in Basic Latin Unicode. The next loop should give 98 or "b" and so on.

The output I get is 01' no matter the number of loops  
The $char function sees only the 96 and not the $add function.

Either I have a syntax error or I am trying to do something in the wrong manner

Thanks for the help

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [January 17, 2017, 3:49am UTC](https://community.mp3tag.de/t/using-an-action-to-format-title/18617/2 "2017-01-17T03:49:36Z")

</div>

Try this:  
$num(%discnumber%,2)$char($add(96,%\_counter%))

---

<div class="post-metadata">

**Author:** ![wesley555](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/4da419/32.png) [@wesley555](https://community.mp3tag.de/u/wesley555)\
**Post date:** [January 18, 2017, 12:50am UTC](https://community.mp3tag.de/t/using-an-action-to-format-title/18617/3 "2017-01-18T00:50:37Z")

</div>

> [@ryerman](#):
>
> Try this:
> 
> ```
> $num(%discnumber%,2)$char($add(96,%_counter%))
> 
> ```

That does the trick. Well it was a syntax error. Well more for me learn.

Thanks.
