title: If condition not working in email template in magento2
body: <p>I need to use an if conditions on an email template, but somehow it is not working, I have tried many approaches but in vain. The approach of islogin variable is I have created one hidden text field which have name and id set
  to islogin. Below is my code what's wrong with this code.</p>
  
  <pre><code>&lt;input name="islogin" id="islogin" value="&lt;?= $block-&gt;escapeHtmlAttr($this-&gt;helper('Magento\Contact\Helper\Data')-&gt;getUserName()) ?&gt;" class="input-text hide" type="hidden" /&gt;
  &lt;table class="message-details"&gt;
      {{if !data.islogin}}
      &lt;tr&gt;
          &lt;td&gt;&lt;b&gt;{{trans "Name"}}&lt;/b&gt;&lt;/td&gt;
          &lt;td&gt;{{var data.name}}&lt;/td&gt;
      &lt;/tr&gt;
      {{/if}}
      {{if !data.islogin || data.islogin}}
      &lt;tr&gt;
          &lt;td&gt;&lt;b&gt;{{trans "Email"}}&lt;/b&gt;&lt;/td&gt;
          &lt;td&gt;{{var data.email}}&lt;/td&gt;
      &lt;/tr&gt;
      {{/if}}
  &lt;/table&gt;
  </code></pre>