title: ng-if change value in view
body: <p>I'm new in angularJS, here is my issue:
   I would like to know what is the syntax for doing this:
  i would like to put the value to <code>'0'</code> if <code>user.fields[5].value=undefined</code> I tried this with <code>ng-if</code> but it's not working, i don't know the syntax and i don't know if <code>ng-if</code> is appropriate for doing this. Maybe <code>ng-init</code> is better, i don't know can you help me pls ?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>ng-if="user.fields[5].value==undefined[user.fields[5].value='0']"&gt;{{user.fields[5].value}} 
  </code></pre>