# Compilation = 1 based on string content possible?

**URL:** https://community.mp3tag.de/t/compilation-1-based-on-string-content-possible/59119
**Category:** Mac
**Created:** [November 19, 2022, 7:40pm UTC](https://community.mp3tag.de/t/compilation-1-based-on-string-content-possible/59119 "2022-11-19T19:40:23Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![npx](https://community.mp3tag.de/user_avatar/community.mp3tag.de/npx/32/10805_2.png) [@npx](https://community.mp3tag.de/u/npx)
#### Post date: [November 20, 2022, 1:35pm UTC](https://community.mp3tag.de/t/compilation-1-based-on-string-content-possible/59119/3 "2022-11-20T13:35:37Z")

</div>

Thank you @ohrenkino - I will use this!

Would it be possible to implement a "contains" string function for to make it possible, @Florian ? Similar to the equal function? Or would that be too resource heavy or complicated?

And another question (it is related, I think!), is it or could it be possible to pull and automatically set track number and total tracks from the tag source?

Example:

 ![track-number-total-tracks](https://community.mp3tag.de/uploads/default/original/2X/d/d5b94bbe8dc751fb8635fc8dc47403ed4e9769fc.jpeg)

Here it found the TRACK = 5, I move my file to line 5 to assign it to the correct track but if Mp3tag could read out that the album has a total of 7 tracks it might be possible for it to automatically add that at the end of the track field (i.e. "5/7" instead of just "5")? It would save a lot of time by not always having to manually set track data in the track number assistant (Cmd+K). I can see that it might mess things up a bit in some cases, but as an optional switch would be cool.

---

_[View the full topic](https://community.mp3tag.de/t/compilation-1-based-on-string-content-possible/59119)._
