View Single Post
Old 01-03-2023, 08:39 PM   #449
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,091
Karma: 76037135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
As part of a first_non_empty, I have a if-then that checks that:

a) #kobostatus is defined
b) #kobostatus is also not 'Kobo Store'
c) #kobopath is undefined

Code:
if $#kobostatus && !'Kobo Store' in $#kobostatus && !$#kobopath then 'snippets.png' fi
Is there a slightly better way to check the first two?

EDIT: Additional question:

Code:
program: 

days_between(format_date(today(), 'yyyy-MM-dd'), $#fanficupdated);

days_between(today(), $#fanficupdated);
What is the difference between these two lines? On most of the books I tested (but not all of them; perhaps timezone?) there's a difference of 1.

Last edited by ownedbycats; 01-03-2023 at 10:35 PM.
ownedbycats is online now   Reply With Quote