title: Single line If condition without else clause
body: <p>How can we write a single line If condition without else in the operator?</p>
  
  <p>Example:</p>
  
  <blockquote>
    <p>If(count==0) { count=2; }</p>
  </blockquote>
  
  <p>How can we write above like below:</p>
  
  <blockquote>
    <p>count=count==0?2;</p>
  </blockquote>
  
  <p>As ternary operator requires if else condition. I want to do it without the ternery operator. Is there any operator available in C#?</p>
  
  <p>Thanks.</p>