Switch Statement

By Jason Herrington on 25 Mar 2015
There may be some cases where I want to look at a value (say module type) and then depending on the value (say integer) I may want to display several different things.  Right now I think the only way to do that is via several if's.  It would be nice to have a switch statement where you put in a value to look at, and then have multiple output possibilities based on the value coming in along with a default output if the input doesn't match any of the cases.
João Fernandes26 Mar 2015
Can you clarify if you're talking about the server-side logic or the UI?
Because you can do a switch on your logic. Check here the docs.
Justin James26 Mar 2015
It would be nice if there was a matching Switch widget for the Screens/Blocks on the UI.

J.Ja