# Is it possible to abort an action if an error condition is encountered?

**URL:** <https://community.mp3tag.de/t/is-it-possible-to-abort-an-action-if-an-error-condition-is-encountered/50260>\
**Category:** Support\
**Created:** [September 22, 2020, 3:12pm UTC](https://community.mp3tag.de/t/is-it-possible-to-abort-an-action-if-an-error-condition-is-encountered/50260 "2020-09-22T15:12:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KPexEA](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/a183cd/32.png) [@KPexEA](https://community.mp3tag.de/u/KPexEA)\
**Post date:** [September 22, 2020, 3:12pm UTC](https://community.mp3tag.de/t/is-it-possible-to-abort-an-action-if-an-error-condition-is-encountered/50260/1 "2020-09-22T15:12:41Z")

</div>

I have a large action with many entries. I would like to add an entry (or multiple entries) to the beginning that check for error conditions and abort the action if any are found.  
Also, if I run the action on many audio files I would like to know which files caused the abort, either by stopping on the first error item or displaying a list of problem files when complete (like rename does).

For example: If the track number or trackname is empty then I would like to stop the action.

If (expression is false) then abort

Is this possible currently?

---

<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 22, 2020, 3:28pm UTC](https://community.mp3tag.de/t/is-it-possible-to-abort-an-action-if-an-error-condition-is-encountered/50260/2 "2020-09-22T15:28:26Z")

</div>

> [@KPexEA](#):
>
> Is this possible currently?

I do not think so.  
It is possible to use scripting functions with conditions, but such an expression would not lead to the termination of the action(s).  
The way of operation in MP3tag would be to filter to get a list of files that should be treated.  
e.g.

> [@KPexEA](#):
>
> the track number or trackname is empty then I would like to stop the action

you could get a list of files with no track number:  
%track% MISSING  
or a list with files that have a track number:  
%track% PRESENT  
see the help on filters:

> **[Filter and Search – Mp3tag Documentation](https://docs.mp3tag.de/filter/)**
>
> Documentation on Filter and Search and keywords to form complex filter expressions. 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:** [February 9, 2026, 12:28pm UTC](https://community.mp3tag.de/t/is-it-possible-to-abort-an-action-if-an-error-condition-is-encountered/50260/3 "2026-02-09T12:28:50Z")

</div>


