View Single Post
Old 07-17-2012, 05:10 PM   #2
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by gabby98 View Post
Can anyone give me an example of how I would use hascover() and how i could use test() to see if the Series Column has data? I tried, but it keeps saying field not found
Examples in general program mode.

has_cover: return 'yes' if the book has a cover, otherwise "no cover".
Code:
program: ifempty(has_cover(), 'no cover')
Testing if the series column has data: return 'Yes' if it does, otherwise return 'No'
Code:
program: test(field('series'), 'Yes', 'No')
chaley is offline   Reply With Quote