[SR-Users] how can string "0" be equal to int 0?
Daniel-Constantin Mierla
miconda at gmail.com
Fri Oct 15 19:59:51 CEST 2010
On 10/15/10 7:46 PM, Iñaki Baz Castillo wrote:
> [...]
> In Kamailio 1.5 I experiment this problem very often:
>
> Usually I get data from a DB table in which some fields are INT
> (allowing NULL). Possible values are NULL or integers from 0 to N.
> Trying to figure if the column has value 0 is a pain.
Have you tried: if($var(x)==0) ?
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the sr-users
mailing list