# Scripting with Multi value fields

**URL:** https://community.mp3tag.de/t/scripting-with-multi-value-fields/66205
**Category:** Support
**Created:** [October 9, 2024, 4:16pm UTC](https://community.mp3tag.de/t/scripting-with-multi-value-fields/66205 "2024-10-09T16:16:11Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [October 9, 2024, 4:50pm UTC](https://community.mp3tag.de/t/scripting-with-multi-value-fields/66205/2 "2024-10-09T16:50:51Z")

</div>

> [@mista\_j](#):
>
> how to safely script for multi value fields.

If you want to get all the data as a single string, use  
$meta\_sep() with a suitable, unique separator.  
To transform that string back to multi-value fields, use `\\` as separator.

see also here:

> [@Searching (filtering) Fields with Multiple Values](https://community.mp3tag.de/t/searching-filtering-fields-with-multiple-values/66120/):
>
> I have two fields "Language 1" & "Language 2", these two fields are concatenated to form the "Language" field very simply "Language = %Language 1% %Language 2%". I can then filter files by "LANGUAGE HAS ENGLISH" for example in the filter bar. Recently I changed players so the Languages must be tagged as multi value, there must be two tags with the same name but different values in order to register properly in the music app. Now in MP3tag if I use that same expression to filter it will only ma…

---

_[View the full topic](https://community.mp3tag.de/t/scripting-with-multi-value-fields/66205)._
