Check out example codes for "mustache file if condition". It will help you in understanding the concepts better.
Code Example 1
{{#repo}}
<b>{{name}}</b>
{{/repo}}
{{^repo}}
No repos :(
{{/repo}}
Learn ReactJs, React Native from akashmittal.com