View Single Post
Old 02-06-2013, 04:49 PM   #2
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 4,707
Karma: 800144
Join Date: Jan 2010
Location: France
Device: Many android devices
Something like the following in general program mode should do the job, assuming that #file contains the exact filename.
Code:
program: ifempty(field('#file'), template('{author_sort}/{title} - {authors}'))
The same thing in template program mode is something like
Code:
{#file:'ifempty($, template('{author_sort}/{title} - {authors}'))'}
The "something like"s are there because I don't have that column in my library so these are provided without testing.
chaley is offline   Reply With Quote