title: how to use or operator in if statement with more than one conditions
body: <p>I was hoping if there is a way so that in 'if-statement' if we are using more than one 'or' operator can we assign value to a variable which will use that particular condition in if-statement.</p>
  
  <pre><code>if(sum1&gt;15 || sum2&gt;15 || sum3 &gt;15)
  {
      // I want sum = sum1 if the first condition satisfies, 
      // sum=sum2 if the second ,
      // sum=sum3 if the third, instead of given code below.
  }
  
  if(sum1&gt;15)
      sum=sum1
  if(sum2&gt;15)
      sum=sum2
  if(sum3&gt;15)
      sum=sum3
  </code></pre>