switch([
({0h-7h}, night), <-- commas separating items before the end
({7h-24h}, day)
])
try this:
default=switch([
({ 0h-2h}, plst1) ,
({ 2h-3h}, plst2) ,
({ 3h-4h}, plst3) ,
({ 4h-5h}, plst4) ,
({ 5h-8h}, plst5) ,
({ 8h-10h}, plst6),
({ 10h-11h}, plst8),
({ 11h-13h}, plst9) ,
({ 13h-14h}, plst10),
({ 14h-17h), plst11) ,
({ 17h-19h}, plst12) ,
({ 19h-20h}, plst13) ,
({ 20h-22h}, plst14) ,
({ 22h-0h}, plst15)
])
It looks like you're new here. If you want to get involved, click one of these buttons!