Quote:
Originally Posted by Amon_Re
Hmm, this only works if #kobo_percent_read is 1. If the value is between 2 and 100 the result is "finished".
|
It works for me using an integer column. What exactly is the type of the kobo_percent_read column? Is it float, int, or (shudder) text? And what exactly are the values in the column?
You might be able to make it work using this template that instructs calibre to treat the values as numbers even if they are declared as text.
Code:
{#kobo_percent_read:'switch_if($ >=# 100, 'finished', $ <=# 0, 'unread', 'reading')'}