<p></p>
<p>Is my problem with the use of the negation operator?  Or should I be calling the function in the condition instead of assigning to a variable and then evaluating the variable?</p>
<pre><code>$vn(alias_found) = alias_db_lookup("DbAliases");
if ( !$vn(alias_found) ) {
    ## I would expect this to execute if no alias is found.
   return;
}
## I would expect to reach here if the alias is found.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2517#issuecomment-712372979">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMUVV437HEFSYT3T3DSLSDAZANCNFSM4SWQJ5GA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNRXLJXF6WZMUS5223SLSDAZA5CNFSM4SWQJ5GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFJ27F4Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2517#issuecomment-712372979",
"url": "https://github.com/kamailio/kamailio/issues/2517#issuecomment-712372979",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>