View Single Post
Old 11-10-2014, 02:36 PM   #5
chaley
Grand Sorcerer
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: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Something like
Code:
{identifiers:'ifempty(select($, 'asin'), select($, 'isbn'))'}
should work, where you change the identifier names to be what you want. The first named identifier (asin above) takes precedence over the second (isbn).

To help you be able to do this yourself in the future, the above is an expression in Template Program Mode. Here is the documentation for the ifempty function and the documentation for the select function. All of the function documentation is here.
chaley is offline   Reply With Quote