# Make a 'Convert' formula into an 'Action'

**URL:** <https://community.mp3tag.de/t/make-a-convert-formula-into-an-action/61307>\
**Category:** Support\
**Created:** [June 19, 2023, 11:16pm UTC](https://community.mp3tag.de/t/make-a-convert-formula-into-an-action/61307 "2023-06-19T23:16:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkspitzer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@tkspitzer](https://community.mp3tag.de/u/tkspitzer)\
**Post date:** [June 19, 2023, 11:16pm UTC](https://community.mp3tag.de/t/make-a-convert-formula-into-an-action/61307/1 "2023-06-19T23:16:34Z")

</div>

I have a Convert function that puts the Track number in front of the title and prepends a 0 if the Track number has less than two digits:  
$ifgreater($len(%track%),1,,0)%track%-%title%

How do I make that into an Action?

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [June 19, 2023, 11:30pm UTC](https://community.mp3tag.de/t/make-a-convert-formula-into-an-action/61307/2 "2023-06-19T23:30:17Z")

</div>

Just use the $num function instead.

`$num(%track%,2) %title%`

Will ensure that all names have a 2 digit track number and add the leading 0 as necessary.

To use this in an action, you can use Format Values, and the above line to format Title.

---

<div class="post-metadata">

**Author:** ![tkspitzer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@tkspitzer](https://community.mp3tag.de/u/tkspitzer)\
**Post date:** [June 20, 2023, 4:35am UTC](https://community.mp3tag.de/t/make-a-convert-formula-into-an-action/61307/3 "2023-06-20T04:35:56Z")

</div>

Perfect, thanks for the help!

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [July 20, 2023, 4:36am UTC](https://community.mp3tag.de/t/make-a-convert-formula-into-an-action/61307/4 "2023-07-20T04:36:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
