# If 0 delete field

**URL:** <https://community.mp3tag.de/t/if-0-delete-field/17191>\
**Category:** Support\
**Created:** [September 1, 2015, 5:07am UTC](https://community.mp3tag.de/t/if-0-delete-field/17191 "2015-09-01T05:07:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [September 1, 2015, 5:07am UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/1 "2015-09-01T05:07:22Z")

</div>

I discovered that some of my files have not been BPM analyzed and have a single digit 0 in BPM field.  
As some programs interprete this as 40.00 for some odd reason, I would have to clean that 0 and leave that field empty on such occasions.

How to create an action, which in those cases would delete that 0, leaving field blank, but at the same time would leave other files untouched, which actually have valid BPM values eq would return existing value?

---

<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:** [September 1, 2015, 5:54am UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/2 "2015-09-01T05:54:35Z")

</div>

Use a filter with  
%bpm% IS 0  
Select all files, open extended tags dialogue (alt-t) and delete BPM field.  
Should be easier than devising an action.

---

<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:** [September 1, 2015, 6:07am UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/3 "2015-09-01T06:07:06Z")

</div>

> [@Etz](#):
>
> ... How to create an action, which in those cases would delete that 0, leaving field blank, but at the same time would leave other files untouched, which actually have valid BPM values eq would return existing value?

**Action "Format value" Field ......: BPM Formatstring: $ifgreater(%BPM%,0,%BPM%,)**

DD.20150901.1007.CEST

---

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [September 1, 2015, 11:23am UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/4 "2015-09-01T11:23:06Z")

</div>

> [@ohrenkino](#):
>
> Use a filter with  
> %bpm% IS 0  
> Select all files, open extended tags dialogue (alt-t) and delete BPM field.  
> Should be easier than devising an action.

Actually I needed an action, to combine with rounding action, which tends to produce that 0, when the field is actually blank 😉

I know that I could filter them out that way and fix manually, but this way I can automate it.

---

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [September 1, 2015, 11:23am UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/5 "2015-09-01T11:23:36Z")

</div>

> [@DetlevD](#):
>
> **Action "Format value" Field ......: BPM Formatstring: $ifgreater(%BPM%,0,%BPM%,)**
> 
> DD.20150901.1007.CEST

Thanks, now I see why I failed, I used replace rather than format value... ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [September 1, 2015, 12:38pm UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/6 "2015-09-01T12:38:06Z")

</div>

Actually I have one rather complex issue more, which I have not been able to figure out, will try to describe it and maybe someone else has some good ideas.

Basically what I need is somekind of action/action group, to add specific comment, for example LONG if track is longer than 900 seconds (15 minutes) and commend already does not exist. If track is shorter than 900 seconds and comment does not exist, add second spefic comment, for example SHORT.  
If comment already exists, then do nothing regardless of track length...

It's probably quite hard to understand, but I did my best to explain 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:** [September 1, 2015, 6:57pm UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/7 "2015-09-01T18:57:32Z")

</div>

> [@Etz](#):
>
> ... what I need is somekind of action/action group, to add specific comment, for example LONG if track is longer than 900 seconds (15 minutes) and commend already does not exist. If track is shorter than 900 seconds and comment does not exist, add second spefic comment, for example SHORT. If comment already exists, then do nothing regardless of track length ...

**Rules ... 1. If flag already exists, then do nothing regardless of track length. 2. If flag does not exist and if track is longer than 900 seconds, then set flag to "L". 3. If flag does not exist and if track is shorter than 900 seconds, then set flag to "S". Two actions "Format value" ... FLAG\_LS \<== $if2(%FLAG\_LS%,$ifgreater(%\_length\_seconds%,900,'L',)) FLAG\_LS \<== $if2(%FLAG\_LS%,$ifgreater(900,%\_length\_seconds%,'S',)) ... or ... One action "Format value" ... FLAG\_LS \<== $if2(%FLAG\_LS%,$ifgreater(%\_length\_seconds%,900,'L',$ifgreater(900,%\_length\_seconds%,'S',)))**

DD.20150901.2257.CEST

You may add the case, when the track length is equal to 900 seconds.

DD.20150902.0805.CEST

---

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [September 1, 2015, 7:39pm UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/8 "2015-09-01T19:39:02Z")

</div>

Thank you...I really owe you one now... ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")

---

<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:25pm UTC](https://community.mp3tag.de/t/if-0-delete-field/17191/9 "2026-02-09T12:25:50Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


