<div dir="ltr">I have following SQL query<div><br></div><div> avp_db_query(&quot;SELECT billing_customer,route_info FROM inbound WHERE (did=&#39;$tU&#39;)&quot;,&quot;$avp(bparty);$avp(route_info)&quot;);<br></div><div><br></div><div>I want to check if $avp(route_info)   has NULL entry in DB table, But following code always giving me true. Even DB has value. what is wrong with code?</div><div><br></div><div><div> if ($avp(route_info) = NULL) {</div><div>        xlog(&quot;Route_info is NULL&quot;);</div></div><div>}</div><div><br></div></div>