# IF statement for album removal

**URL:** https://community.mp3tag.de/t/if-statement-for-album-removal/69276
**Category:** Support
**Created:** [July 28, 2025, 4:40pm UTC](https://community.mp3tag.de/t/if-statement-for-album-removal/69276 "2025-07-28T16:40:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![knightrin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/da6949/32.png) [@knightrin](https://community.mp3tag.de/u/knightrin)
#### Post date: [July 28, 2025, 4:40pm UTC](https://community.mp3tag.de/t/if-statement-for-album-removal/69276/1 "2025-07-28T16:40:27Z")

</div>

I'll like to remove album content if it doesn't have the contain the word "riddim" or "project". I've use the following and nothing.

[#0]  
T=5  
1=$if($findi(%album%,riddim),%album%,)  
F=ALBUM

or

[#6]  
T=5  
1=$if($strstr($lower(%album%),riddim),%album%,)  
F=ALBUM\_FINAL

[#7]  
T=9  
F=ALBUM

[#8]  
T=5  
1=%album\_final%  
F=ALBUM

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [July 28, 2025, 4:57pm UTC](https://community.mp3tag.de/t/if-statement-for-album-removal/69276/2 "2025-07-28T16:57:40Z")

</div>

I don't know the function

> [@knightrin](#):
>
> $findi(

what is that supposed to do?

In general: $if() expects a boolean result (i.e. something is true or false) but you have to include some kind of comparison that can be true or false.  
Right now, I don't see a comparison operator.

You can test your expression in Convert\>Tag-Tag and see in the preview if it produces the correct result.

See more in the documentation:

> **[Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/#boolean-functions)**
>
> Documentation on Mp3tag's scripting functions. Mp3tag is the universal Tag Editor.

---

<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: [September 9, 2025, 10:28am UTC](https://community.mp3tag.de/t/if-statement-for-album-removal/69276/3 "2025-09-09T10:28:32Z")

</div>

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