# Is there a way to use function syntax in actions?

**URL:** https://community.mp3tag.de/t/is-there-a-way-to-use-function-syntax-in-actions/56223
**Category:** Support
**Created:** [February 5, 2022, 10:17pm UTC](https://community.mp3tag.de/t/is-there-a-way-to-use-function-syntax-in-actions/56223 "2022-02-05T22:17:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![smoore33](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@smoore33](https://community.mp3tag.de/u/smoore33)
#### Post date: [February 5, 2022, 10:17pm UTC](https://community.mp3tag.de/t/is-there-a-way-to-use-function-syntax-in-actions/56223/1 "2022-02-05T22:17:06Z")

</div>

Actions and functions use similar, but different syntax, because actions use a GUI. I like having the choice between command line and GUI, but it does make it more difficult to find examples that show the exact syntax of actions and/or functions and thus complicates the learning process. For example, $replace() can use multiple from/to arguments (and maybe can include multiple fields in it's string argument?) but that doesn't tell me, or us, if and how the replace _action_ can use multiple arguments.

One way to work around this would be to focus on learning the functions syntax. This would work if there is a way to create an action that is effectively a script of functions...and operators, commands, etc., for that matter. So, is there a way to create an action that is made up of script functions, using the exact function syntax?

I'm now suspecting that Replace with regular expression is the closest one can come to what I'm looking for. If so, a very brief answer will be understood. I hope I haven't wasted anyone's time.

---

<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: [February 6, 2022, 7:14am UTC](https://community.mp3tag.de/t/is-there-a-way-to-use-function-syntax-in-actions/56223/2 "2022-02-06T07:14:42Z")

</div>

To use $replace for several fields in one action, see

> [@Using TAG in actions/combining actions for different tags](https://community.mp3tag.de/t/using-tag-in-actions-combining-actions-for-different-tags/42419/3):
>
> You cannot define an exception. You can only define a list (which is a fairly strange approach): Instead of using the prefab actions for case conversion, format value, replace etc. you use an action of the type "Guess value". The basic approach with this action is that you first join all fields and treat them with the function that you want to apply multiple times and then you split them again, e.g.: Guess value Source: $replace('%title% === %ALBUM%','[','(',']',')') Target: %title% === %a…

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 6, 2022, 6:36pm UTC](https://community.mp3tag.de/t/is-there-a-way-to-use-function-syntax-in-actions/56223/3 "2022-02-06T18:36:01Z")

</div>

> [@smoore33](#):
>
> So, is there a way to create an action that is made up of script functions, using the exact function syntax?

I am not sure I understand your request correctly.  
You could have a look [here](https://docs.mp3tag.de/actions) to see how «Action Groups» are working. If you combine several single and simple actions together into one collection - called Action Group - you can apply as many changes as you need with one single click.  
It is often easier to have 10 different actions for 10 different tags to keep full control over the result. if you write one very complex action it is more difficult to find an error or define some exceptions. In addition you run the risk to don't recognize the use case anymore in a month or a year. 😉

Feel free to ask for a specific use case where you need assistance.

---

<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:29pm UTC](https://community.mp3tag.de/t/is-there-a-way-to-use-function-syntax-in-actions/56223/4 "2026-02-09T12:29:39Z")

</div>


