Thanks. Another question: what is the difference, if any, between using a first_non_empty and an if-then-elif in a situation like this?
first_non_empty is a bit easier for me (less misplaced fi's, for one!) so I'm inclined to keep it unless there's some large advantage to the other.
Code:
program:
if $#booktype == 'Fanfiction' then
first_non_empty(
if
$#fanficstatus == 'In-Progress'
&& days_between(format_date(today(), 'yyyy-MM-dd'), $#fanficupdated) >= 365
then
'clock.png'
fi,
if
!'^cover:' inlist $#admintags
then
'test'
fi
)
fi
Code:
program:
if $#booktype == 'Fanfiction' then
if
$#fanficstatus == 'In-Progress'
&& days_between(format_date(today(), 'yyyy-MM-dd'), $#fanficupdated) >= 365
then
'clock.png'
elif
!'^cover:' inlist $#admintags
then
'test'
fi
fi