title: how to write if else under return react native
body: <p>hope you are doing well.</p>
  
  <p>I am stuck in little problem is i want to pass a  tag only if my condition goes true.</p>
  
  <p>for ex:</p>
  
  <pre><code>render(
     return(
       &lt;View&gt;
           {
            if(data==='test')
              {
                &lt;Text&gt;Hello this is Test Execution &lt;/Text&gt;
              }
           }
       &lt;/View&gt;
     )
  )
  </code></pre>
  
  <p>i want to do exactly like above example.</p>
  
  <p>i get some errors i can't understand what to do so please help me.</p>
  
  <p>Thank you</p>