View Single Post
Old 04-09-2025, 09:20 PM   #828
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,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
program:
cost = $$#purchasecost;

	switch_if(
		cost == 'none', '',
		'[Bundle]' inlist $#admintags, '[Bundle]',
		'kobopoints:' inlist $#admintags, '[Kobo VIP]',
		cost ==# '00.00', '$0.00',
		cost <=# '00.99', '$0.01 - $0.99',
		cost <=# '04.99', '$1.00 - $4.99',
		cost <=# '10.00', '$5.00 - $9.99',
		cost <=# '15.00', '$10.00 - $14.99',
		cost <=# '15.00', '$10.00 - $14.99',
		cost <=# '20.00', '$15.00 - $19.99',
		cost <=# '30.00', '$20.00 - $29.99',
		'$30.00 and up' 
	)

This returns [Bundle] for nearly everything, even when the entry doesn't exist in admintags. It doesn't happen when I remove square brackets in the test. What happened?
ownedbycats is offline   Reply With Quote