Salve
Mi chiedevo se esisteva un modo piu snello per scrivere questa condizione:
Codice PHP:
wcat request ("categoria")
if 
wcat="1" then
Strcategoria 
"Fitti"
end if

if 
wcat="2" then
Strcategoria 
"Fitti"
end if

if 
wcat="3" then
Strcategoria 
"Fitti"
end if

if 
wcat="4" then
Strcategoria 
"Vendite"
end if

if 
wcat="5" then
Strcategoria 
"Vendite"
end if

if 
wcat="6" then
Strcategoria 
"Vendite"
end if 
come notate se wcat e uguale a 1,2,3 la Strcategoria e uguale.. e cosi via per gli altri valori!
Esiste un modo piu semplice per scrivere la condizione??
es

if wcat="6,7,8" then
Strcategoria = "Vendite"
end if
Cosi non va! gia provato

if wcat="6 or 7 or 8" then
Strcategoria = "Vendite"
end if
Cosi non va! gia provato


Qualche suggerimento?