title: If statments in Js
body: <p>I need a litle bit of help. So I have a rename functionality, I have many if statements, the one I cant bear to begin is, I want to create an if statement when name is<br />
  is not changed, I will add an alert. Like you see from the  example below for Name blank. I hope you understood me. Edit: this is if statement is for the  other funcionality  of rename File</p>
  <pre><code>   if(!fileName.replace(/\s+/, &quot;&quot;) .length &gt; 0){
              Alert.alert('Error', &quot;Name can't be blank&quot;);
              return;
          } 
  </code></pre>