Hi All--
In an effort to get more in sync with TMDB, I defined a new library field, [Series_themovieDBorg], as a string in MC’s Library options. That will let me move articles and add years when there are multiple matches for TV series. However, in doing a bunch of file re-naming, I'm having trouble with the "IsEmpty" function.
When nothing is in my user-defined field, the following expression gives me an unexpected result:
If(IsEmpty([Series_themovieDBorg]),[Series],[Series_themovieDBorg])\
gives me: <basePath>\Unknown Series_themovieDBorg\
when I expect: <basePath>\[Series]\
When I revise the expression to include an argument for the IsEmpty check…
If(IsEmpty([Series_themovieDBorg],1),[Series],[Series_themovieDBorg])\
gives me: <basePath>\[Series]\
which is strange, since the ‘1’ argument should be doing a numerical comparison, but both the Series field and my defined fields are strings.
If I flip things around and use the “!” operator. I have the same problem:
If(!IsEmpty([Series_themovieDBorg]),[Series_themovieDBorg],[Series])\
gives me: <basePath>\Unknown Series_themovieDBorg\
and
If(!IsEmpty([Series_themovieDBorg],1),[Series_themovieDBorg],[Series])\
gives me <basePath>\[Series]
I feel like I’ve been struggling with this long enough that I’m missing something elemental :-)
Any ideas? Thanks!