2020-06-28, 12:39
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?
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?