Friends,
So far, I have introduced the following templates into the settings of Kobo Touch extended, for book stats:
For LOWER program:round(($$#words / 12000) -1)
For UPPER program: round($$#words / 12000)
And everything works beautifully - on the second Calibre connection, the statistics are displayed for each book (for me they are just kepub).
However, I want to add a bit of extra logic. Since reading time doesn't affect books containing less than 6000 words, the smallest time in that case becomes a negative integer
and, as a result, reading time is not displayed.
So, my question is if such logic can be introduced: if the words are below 6000 - then minimum time to be 0 hours, and maximum time to be 1 hour. If the words are more than or equal to 6000, the above calculations to be applied.
I.e. something like this:
For LOWER program: if ($$#words > 6000) then round($$#words / 12000 -1) else 0 fi
For UPPER program: if ($$#words > 6000) then round($$#words / 12000) else 1 fi
I've tried it, but it seems like there's something i'm not doing quite right. I will be happy if someone helps.
Thanks!
Last edited by Svens; 05-08-2022 at 03:26 AM.
|