# Adding text to field if not already present

**URL:** https://community.mp3tag.de/t/adding-text-to-field-if-not-already-present/13395
**Category:** Support
**Created:** [May 4, 2012, 2:25pm UTC](https://community.mp3tag.de/t/adding-text-to-field-if-not-already-present/13395 "2012-05-04T14:25:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ExitRitual](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@ExitRitual](https://community.mp3tag.de/u/ExitRitual)
#### Post date: [May 4, 2012, 2:25pm UTC](https://community.mp3tag.de/t/adding-text-to-field-if-not-already-present/13395/1 "2012-05-04T14:25:24Z")

</div>

Hi All,

Apologies if this has been covered, but i couldn't find anything. I've also looked at the FAQ but code is FAR from my strong-point.

I'm looking to add ' OST' (that's; \_space\_OST) to the end of all ARTIST field if not already present. I'd like it to be case sensitive and exact phrase match, too.

If anyone can help me out on this, i'd really appreciate it.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 4, 2012, 2:58pm UTC](https://community.mp3tag.de/t/adding-text-to-field-if-not-already-present/13395/2 "2012-05-04T14:58:13Z")

</div>

> [@ExitRitual](#):
>
> ... Apologies if this has been covered, but i couldn't find anything. I've also looked at the FAQ but code is FAR from my strong-point.  
> I'm looking to add ' OST' (that's; \_space\_OST) to the end of all ARTIST field if not already present. I'd like it to be case sensitive and exact phrase match, too. If anyone can help me out on this, i'd really appreciate it.

1. Appending something to a tag-field is standard theme of the FAQ area.

2. Appending something in the case of while it does not already exist, this is a matter of checking out, whether some value exists or not.  
For your example this might be 'very easy'.

Look at the rightmost four characters ... $right(%ARTIST%,4).  
Check the value against the given tag-field content ... $eql($right(%ARTIST%,4),' OST')  
Make a decision what to do ... $if($eql($right(%ARTIST%,4),' OST'),%ARTIST%,%ARTIST%' OST')

DD.20120504.1850.CEST

---

<div class="post-metadata">

### Author: ![ExitRitual](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@ExitRitual](https://community.mp3tag.de/u/ExitRitual)
#### Post date: [May 5, 2012, 9:53am UTC](https://community.mp3tag.de/t/adding-text-to-field-if-not-already-present/13395/3 "2012-05-05T09:53:38Z")

</div>

> [@DetlevD](#):
>
> $if($eql($right(%ARTIST%,4),' OST'),%ARTIST%,%ARTIST%' OST')

Thanks very much 🙂  
Worked perfectly.

---

<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: [February 9, 2026, 12:23pm UTC](https://community.mp3tag.de/t/adding-text-to-field-if-not-already-present/13395/4 "2026-02-09T12:23:49Z")

</div>


