View Single Post
Old 05-18-2020, 07:00 AM   #867
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,477
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by LibBikher View Post
ok so it is working. What i am looking for is:

return "yes" if #asin = #file
return "no" if #asin ≠ #file
return "na" if #asin or #file is empty
Try this
Code:
program:
	asin = raw_field('#enum2');
	file = raw_field('#enum2');
	first_non_empty (
		strcmp(file, 'None',  '', 'na', ''),
		strcmp(asin, 'None',  '', 'na', ''),
		strcmp(file, asin, 'no', 'yes', 'no')
	)
Note that it won't work if file or asin can ever be the word "None".
chaley is offline   Reply With Quote