title: How to set a custom/default value to the value coming from database?
body: <p>How to set a custom/default value to the value coming from database?
  I've the following color code values which I need to match/set for the values from the DB.</p>
  
  <pre><code>**Values from DB**     **Default value**
  At Risk -                 Red
  On Track -                Green
  Needs Attention -         Yellow
  </code></pre>
  
  <p>Please let me know how to tweak my below code to get the expected o/p.</p>
  
  <pre><code>String colorStatus = userObj.setStatus();
              userCodeValue.setStatus(colorStatus);
              /*String yellowColor = "yellow";
              if(colorStatus.equalsIgnoreCase("Need Attention")){
                  vlcValue.setStatus(yellowColor);
              }*/
  </code></pre>