View Single Post
Old 05-15-2020, 12:59 AM   #855
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,744
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by LibBikher View Post
I have one column that displays the asin (I figured out how to do this)

I would like to create a column that displays the file name of the book
And a column that compares the asin column and the file name column and retures 1 if the same and 2 if different
Try this:
  1. Use the GetFileName plugin to put the file name in a custom column ('file') ==>> Index of plugins
  2. Put the ASIN into a composed custom column ('asin') using a template; something like this {identifiers:select(amazon)}
  3. In another composed custom column ('result') use the string compare (strcmp) function to compare 'file' and 'asin' and set the 'results' column value see ==>> calibre templates: Function classification

The names 'file', 'asin', and 'result' are illustrative.

BR
BetterRed is offline   Reply With Quote