# Preview in converter doesn't match the result after a Preview-Button click

**URL:** https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [March 30, 2022, 8:56am UTC](https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861 "2022-03-30T08:56:51Z")
**Posts on this page:** 5
**Page:** 1

<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: [March 30, 2022, 8:56am UTC](https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861/1 "2022-03-30T08:56:51Z")

</div>

Please have a look at this converter Tag-Tag Format string for \_FILENAME:  
`$if($grtr($len(%_total_files%),1),$num(%track%,$len(%_total_files%)) - $validate(%title%)),$num(%track%,2) - $validate(%title%))`

 ![image](https://community.mp3tag.de/uploads/default/original/2X/7/7a8c97f0854b7c20cd217a38032469fb9b3848c2.png)

The TITLE content looks like this (note the different case spelling)  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/0/09d053d5efc2382efdf6ee30f9c56cf3ca639007.png)

If you press the Preview-Button you get:

```auto

D:\L\Laura Wilde\Unbeschreiblich\2021\09 - Momente Wie Diese.mp3
  "" ->
  "Invalid IF syntax"

```

Should we not see the immediate preview (above the Preview-Button) with the same  
`"Invalid IF syntax"`?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 30, 2022, 1:13pm UTC](https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861/2 "2022-03-30T13:13:23Z")

</div>

I'll look into this, thanks for pointing!

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [April 2, 2022, 5:41pm UTC](https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861/3 "2022-04-02T17:41:04Z")

</div>

Syntax errors in the format string are now displayed in the live preview with [Mp3tag v3.14a](https://community.mp3tag.de/t/455).

---

<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: [April 3, 2022, 12:24pm UTC](https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861/4 "2022-04-03T12:24:29Z")

</div>

Thanks, now it works as expected in the live preview too!

For those interested: This is the working format string:  
`$ifgreater($len(%_total_files%),1,$num(%track%,$len(%_total_files%)) - $validate(%title%,),$num(%track%,2) - $validate(%title%,))`

---

<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: [May 3, 2022, 12:24pm UTC](https://community.mp3tag.de/t/preview-in-converter-doesnt-match-the-result-after-a-preview-button-click/56861/5 "2022-05-03T12:24:53Z")

</div>

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