Kodi Community Forum

Full Version: Renamer - the file name contains "note"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
I try to insert "note" in the file name in a quite specific way but somehow I fail.
note:
1 - "A"
2 - "B" - all other than "A"
3 - the "note" field is empty
If "A" is  - (#A)
If different then  - (2 # B)
If empty, nothing

Try:
${if movie.note = "A"}(#A)${else}${end} ${if !movie.note = "A"}(2#B)${else}${end}
it works - but if the note field is empty it gives the result (2#) - and I need the "note" field to be empty - nothing added to the file name

How to improve it?
Does this work?

${if !movie.note}${else}${if movie.note = "A"}(#A)${else}(2#B)${end}${end}
Thanks for the advice
I am at work for now, I will test it thoroughly on Friday.
But when I look at it - it makes sense and will probably work.
This is what I ment.
OK Checked and works Smile
Thanks again for your help.