Today, 09:50 AM | #736 | |
Custom User Title
Posts: 9,418
Karma: 64488089
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Code:
program: status = readstatus(); times = field_list_count('#datesread'); readgoal = strcat('readinggoal:', format_date(today(), 'yyyy')) in $#admintags; switch_if( status=='read', 'Read', status=='didnotfinish', 'Did Not Finish', status=='currentlyreading', if times >#0 then 'Currently Rereading' else 'Currently Reading' fi, status=='toberead', 'To Be Read', status=='unread', if readgoal && $$#lastread != 'None' then 'To Be Read' elif readgoal then 'Backlog' else 'Unread' fi, '' ) I just realized I could probably speed up this template a nudge by turning those nested if-thens into switch_ifs. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 159 | 10-18-2024 05:40 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 11:37 AM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 09:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 05:07 PM |