<div dir="ltr">Hi <div><br></div><div>I tried the binary operation using $var as per the documentation and its seems not working. Can somebody help me to understand it.</div><div><br></div><div><a href="http://kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x">http://kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x</a><br>
</div><div><br></div><div><pre class="" style="padding:0.5em;border:1px dashed rgb(140,172,187);color:rgb(0,0,0);background-color:rgb(247,249,250);line-height:1.1em;font-size:12px;overflow:auto">$var(a) = 3 + (7&(~2));

if( [ $var(a) & 4 ] ) {
  xlog("var a has third bit set\n");
}</pre></div><div><br></div><div>The format with square bracket in the conditional statement is showing parse error when i load the cfg. So it tried like below and that too not working </div><div><br></div><div><pre class="" style="padding:0.5em;border:1px dashed rgb(140,172,187);color:rgb(0,0,0);background-color:rgb(247,249,250);line-height:1.1em;font-size:12px;overflow:auto">
$var(a) = 8;

if( $var(a) & 4 ) {
  xlog("var a has third bit set\n");
}</pre></div><div>Please let me know if something missing here.?</div><div><br></div><div><br></div><div>Thanks</div><div>Jijo</div></div>