View Single Post
Old 02-19-2023, 10:21 PM   #8
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
I still don't understand the difference between mine and ownedbycats'. I've even changed the template to use switchif(). Same result for either composite column type.

The word count column the template is taking values from is an Integer type with the format {:,d}


Spoiler:
Code:
program:
	switch_if(
		$$#ao3_words <=# '5000',  '0 - 5000',
		$$#ao3_words <=# '10000', '5001 - 10000',
		$$#ao3_words <=# '20000', '10001 - 20000',
		$$#ao3_words <=# '40000', '20001 - 40000',
		$$#ao3_words <=# '80000', '40001 - 80000',
		'80000+' 
	)
Attached Thumbnails
Click image for larger version

Name:	wordcount_switchif.jpg
Views:	111
Size:	110.2 KB
ID:	199822  
culytera is offline   Reply With Quote