View Single Post
Old 08-23-2021, 05:46 PM   #147
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Thank you. That also seems to get the 50/100 example though. I'll see if math functions might help here.
Sorry, I read "less than" not "one less than". The prototype template would be:
Code:
program:
	t = $#tool;
	if '/' in t then
		f = re(t, '(.*)/.*', '\1');
		s = re(t, '.*/(.*)', '\1');
		if (s - f) ==# 1 then
			'icon.png'
		fi
	fi
chaley is offline   Reply With Quote