End Google Ads 201810 - BS.net 01 --> Hi - I am trying to find the best conditional statement to use, to display a feature on web site.

I have a field from database which has a value 0,1 or 2. And based on what value this product has display different pieces of information.

I am using a case statement:

switch (value) case 2: value="message 1"; break; case 1: value="message 2"; break; default: break; return (value)
Is there a better and more efficient way to write this statement?

Thanks!