[QGIS-it-user] Costrutture stringhe di espressioni_case when

Ciao,
nel costruttore stringhe di espressione vorrei inserire, nella stessa espressione, due o più condizioni come quelle sotto riportate.
Come unisco in una sola espressione queste due sotto riportate? Qualche aiuto?
Grazie

case

when
amenity in (‘restaurant’,‘cafe’,‘pub’,‘bar’,‘fast_food’)
then
‘{ “color”: “OrangeRed” }’
end

case
when
tourism in (‘hotel’,‘apartment’,‘camp_site’,‘chalet’,‘guest_house’,‘alpine_hut’)
then
‘{ “color”: “DeepSkyBlue” }’
end

Roberto

Ciao,

ti basta

case
when amenity in ('restaurant','cafe','pub','bar','fast_food')
then '{ "color": "OrangeRed" }'
when tourism in ('hotel','apartment','camp_site','chalet','guest_house','alpine_hut')
then '{ "color": "DeepSkyBlue" }'
end

se guardi la guida del calcolatore di campi vedrai che puoi inserire quanti WHEN vuoi

Matteo