Using {"$genres"} returns empty brackets if null
Posted: 27 Mar 2017, 06:34
I am positive someone has the solution for this. I couldn't come up with it after doing a few hour of playing around with it.
My movie format looks like this:
Problem is that when using genres instead of genre, brackets are included. However, If genres returns a null value I get nothing but a pair of [] in my title. I tried using:
That failed because it removed the brackets and genres.
I tried to change the sample movie from Avatar to a movie that would return empty brackets to test formulas, couldn't figure that out, too convoluted.
Any help?
My movie format looks like this:
Code: Select all
{"$ny"} {"[$certification]"} {"[$runtime min]"} {"$genres"} {"[$imdbid, $rating]"}
Code: Select all
{"$ny"} {"[$certification]"} {"[$runtime min]"} {replaceAll([], replacement = "")"$genres"} {"[$imdbid, $rating]"}
I tried to change the sample movie from Avatar to a movie that would return empty brackets to test formulas, couldn't figure that out, too convoluted.
Any help?