I'm setting an export script to fill a specific html model that will be used later. I want to make 3 conditionals.
-
If the %album% tag doesn't contain the string " - EP" or " - Single", add " [Album]" and write "%album% [Album]"
-
If the %album% tag contains the string " - EP", replaces " - EP" with " [EP]" and write the edited album field.
-
If the %album% tag contains the string " - Single", replaces " - Single" with " [Single]" and write the edited album field.
I started doing a pseudo code and building the code right after, but I'm struggling to understand how MP3Tag logic works:
<div>
$if( %album% has string " - EP" || " - Single", Do nothing, Concatenate and write %album% + [ALBUM] )
$if( %album% has string " - EP", Write $replace(%album%, - EP, [EP]), Do nothing )
$if( %album% has string " - Single", Write $replace(%album%, - Single, [Single]), Do nothing )
</div>
I could't move forward. Can somebody help?