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?