Hello! I'm using a template that uses the word count column to assign a book's tags.
I have tags for Comics, Novellas, Novels, and Long. Ideally, anything under 2k words will be a Comic, under 40k is a Novella, 150k is a Novel, and anything above that is Long.
It turns out that books with 100k and higher have the "Novel"/"Long" and the "comic" tags, books with 50k-100k words have the correct tags. Books less than 1k are not being given the "comic" tag and books over 188k are not being given any tags at all.
What am I doing wrong?
Example:
Code:
program:
words = $$#words;
pages = $$#pages;
new_colls = strcat(
if (words < 1500000 && words > 150000) then 'Long,' fi,
if (words < 150000 && words > 50000) then 'Novel,' fi,
if (words < 40000 && words > 2000) then 'Novella,' fi,
if (words < 2000 && words > 0 && pages > 0) then 'Comic,' fi
)
new_colls