Question: so I have a variable called multiplier that contains a certain value depending on what the user registered with. What I am trying to write here is

If multiplier is equal to "sedentary" then give it the value of `$sedmultiplier`

If multiplier is equal to "lightly" then give it the value of `$lightmultiplier`

Im stuck on this, can't seem to figure out how this would be written.

```
  switch ($multiplier==) {
      case "sedentary":
         $multiplier=$sedmultiplier;
         break;
     case "lightly":
         $multiplier=$lightmultiplier;
          break;
      case "moderately":
         $multiplier=$modmultiplier;
         break;
      case "very":
         $multiplier=$verymultiplier;
         break;
      case "extremely":
         $multiplier=$extrememultiplier;
         break;
      default:
          multiplier==0;
  }

```

Answer: 
While preview all screen sizes seems to be gone, it is possible in 2.3 to view more than one screen size at the same time.

Right-click on the activity\_main.xml (or whichever xml file) tab, and from the pop-up menu select split-vertically or split-horizontally. 

This will create a second xml tab that can use a different screen for design/text. This can be repeated for more tabs, and the tabs can be "torn off" to float separately.
The Previews are back!

Try this:

1. open your layout xml
2. open the new tab **Layout Validation**

If you can't find the tab, try double-shift and search for "Layout Validation".

[![enter image description here](https://i.stack.imgur.com/2s6yk.gif)](https://i.stack.imgur.com/2s6yk.gif)

([source](https://developer.android.com/studio/debug/layout-inspector#layout-validation))