# $if function help please

**URL:** https://community.mp3tag.de/t/if-function-help-please/8612
**Category:** Support
**Created:** [July 14, 2009, 7:53pm UTC](https://community.mp3tag.de/t/if-function-help-please/8612 "2009-07-14T19:53:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![moley6knipe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@moley6knipe](https://community.mp3tag.de/u/moley6knipe)
#### Post date: [July 14, 2009, 7:53pm UTC](https://community.mp3tag.de/t/if-function-help-please/8612/1 "2009-07-14T19:53:45Z")

</div>

I can't get this to work either!

I'm trying to format %title%. If the contents of tag %www% **match 100% exactly** tag %artist% I want to leave %title% as it is. If not, I want to append the contents of %www% to the end of %title%.

My action...  
Format value  
Field: title  
Format string: $if(%www%=%artist%,%title%,%title% '['Feat. %www%']')

...which by my reading of the helpfile should be right, but if I replace %title%,%title% '['Feat. %www%']') from the above action with true, false) the %title% for all tracks, irrespective of values in %www% or %artist% ends up as true, so it looks like it's not matching exactly.

How do I tell it to match exactly?

---

<div class="post-metadata">

### Author: ![newser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/b9bd4f/32.png) [@newser](https://community.mp3tag.de/u/newser)
#### Post date: [July 14, 2009, 8:45pm UTC](https://community.mp3tag.de/t/if-function-help-please/8612/2 "2009-07-14T20:45:03Z")

</div>

Not tested.  
Format string: $if($eql(%www%,%artist%),%title%,%title% '['Feat. %www%']')

---

<div class="post-metadata">

### Author: ![moley6knipe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@moley6knipe](https://community.mp3tag.de/u/moley6knipe)
#### Post date: [July 15, 2009, 11:02am UTC](https://community.mp3tag.de/t/if-function-help-please/8612/3 "2009-07-15T11:02:55Z")

</div>

Ah, bless ya. That's fixed it! Thanks!

---

<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:21pm UTC](https://community.mp3tag.de/t/if-function-help-please/8612/4 "2026-02-09T12:21:38Z")

</div>


