# Conditional field tracktotal \> 100

**URL:** https://discourse.beets.io/t/conditional-field-tracktotal-100/110
**Category:** Help
**Created:** [June 1, 2017, 6:42pm UTC](https://discourse.beets.io/t/conditional-field-tracktotal-100/110 "2017-06-01T18:42:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![simsaladim](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@simsaladim](https://discourse.beets.io/u/simsaladim)
#### Post date: [June 1, 2017, 6:42pm UTC](https://discourse.beets.io/t/conditional-field-tracktotal-100/110/1 "2017-06-01T18:42:57Z")

</div>

hi all,

first of all, being new to beets i already love it. Thank you!

While importing the Harry Potter Audiobook i realized that it looks ugly to have Tracknumbering starting with ‘01’ and ending ‘108’. While most players will get along with this i wondered wether i can extend the tracknumbering to start with ‘001’ in such situations conditionally?

Rather then having clutter on filesystem in this special situation with Harry Potter Audiobook i tried this to remove conditionally the Tracknumber, but it dont work out:  
albumtype:Audiobook: Hörbuch/$albumartist/%ifdef{year} $album%aunique{}/%if{$tracktotal \< 100,$track,!$track} $title

Thanks in advance  
sascha

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [June 1, 2017, 11:33pm UTC](https://discourse.beets.io/t/conditional-field-tracktotal-100/110/2 "2017-06-01T23:33:01Z")

</div>

Ah, yes, our padding is indeed hard-coded to two digits. Sorry about that!

Anyway, the right way to do this is to use the `inline` plugin. Our little %if expressions don’t support complex conditions like less-than comparisons, so `inline` lets you write them in Python instead.
