title: How to write if condition with two statement in React Native
body: <p>I am just confused about how to match two statement like <code>if else</code> of <code>JavaScript</code> in <strong>React Native</strong></p>
  
  <p>for e.g.,</p>
  
  <pre><code>if(array.length != null &amp;&amp; array.length &gt;= 2){
      alert("Array Is Greater Than 2")
  }else if(array.length != null ){
      alert("Array Is Less Than 2")
  }else{
      alert("Array is null")
  }
  </code></pre>
  
  <p>I know how to pass signle condition in React Native like</p>
  
  <p>for e.g.,</p>
  
  <pre><code>{
      array.length != null &amp;&amp;
      &lt;View&gt;
          /* Content Here */
      &lt;/View&gt;
  }
  </code></pre>
  
  <p><em>or</em></p>
  
  <pre><code>{
      array.length != null ?
      &lt;View&gt;
          /* If Content Here */
      &lt;/View&gt;
      :
      &lt;View&gt;
          /* Else Content Here */
      &lt;/View&gt;
  }
  </code></pre>
  
  <p>But How do I create if state like first one ?</p>