View Single Post
Old 04-30-2023, 04:28 PM   #951
Amon_Re
Zealot
Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.
 
Posts: 132
Karma: 14644
Join Date: Sep 2015
Device: Kobo Elipsa, Poketbook Inkpad 3 & Boyue Likebook Minas
Quote:
Originally Posted by chaley View Post
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')'}
This one works perfectly, thank you! As far as I can tell the column is an integer, it was created by the Kobo Utilities plugin and shows up as integer in the preferences
Amon_Re is offline   Reply With Quote