<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>You should also add {s.int} if you want to compare with an
      integer value -- there is some auto-conversion, but it is better
      to be explicit.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 11.03.21 12:53, Jurijs Ivolga wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOrA2UbSS9E_b8HhLaQQ3UZy9m-e9FUXLqAMC5GWMdTAqy1JVg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>This seems to work for me:</div>
        <div><br>
        </div>
        <div>if ($(hdr(X-myheader){s.trim})==0) {<br>
          ......<br>
          };</div>
        <div><br>
        </div>
        <div>Seems in the body I got "0 " and maybe because of this <span><span>automatic
              string to int conversion didn't work.</span></span>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">Jurijs<br>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Mar 11, 2021 at 1:33
          PM Jurijs Ivolga <<a href="mailto:jurijs.ivolga@gmail.com"
            moz-do-not-send="true">jurijs.ivolga@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>Hi,</div>
            <div><br>
            </div>
            <div>I'm running Kamailio 5.3.5</div>
            <div><br>
            </div>
            <div>I have following header "X-myheader: 0"</div>
            <div><br>
            </div>
            <div>Nevertheless it seems this is not working for me:<br>
            </div>
            <div><br>
            </div>
            <div>if ($hdr(X-myheader)==0) {<br>
              .....<br>
               };</div>
            <div><br>
            </div>
            <div>What I'm doing wrong?<br>
            </div>
            <div><br>
            </div>
            <div>
              <div dir="ltr">
                <div dir="ltr">Jurijs<br>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>