Question: for my composite chapter count column:
Is it possible, with a template, to display icon only if the first number is one less than the second?
1/2 - icon.png
2/2 - no icon
99/100 - icon.png
50/100 - no icon
50 - no icon
If it helps, here's the composite. It pulls the numbers from #chaptercount and #kobobookmark:
Code:
program:
input = $#kobobookmark;
status = $#fanficstatus;
ccount = $$#chaptercount;
if
$#fanficcat
then
if
substr(input, 0, 10) == 'OEBPS/file'
&&
!status inlist 'Anthology,Oneshot'
then
strcat(format_number(re(input, '.*\/file(\d+).*', '\1') - 1, '{0:,d}'), '/',ccount)
else
ccount
fi
elif
ccount == 'None'
then
'Not Set'
elif
ccount >#1
then
ccount
fi
Thank you.