[sr-dev] test if $var has been give a value
Daniel-Constantin Mierla
miconda at gmail.com
Thu Sep 3 18:06:35 CEST 2009
On 03.09.2009 18:39 Uhr, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
> > I can make a patch so to return true for PV is they have a value with
> > len!=0, if feels to be right for the rest -- it is what I would expect
> > as well.
>
> that would be great.
>
I see that
if("somestring")
is false always as well. We should get to a common/coherent behavior for
all cases, not only for PVs -- other opinions?
For me, a string that has len>0 should return true in above condition as
well as int that is !=0.
Cheers,
Daniel
> > However, maybe Andrei can detail more about the logic behind.
>
> i hope there isn't any :-).
>
> -- juha
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
--
Daniel-Constantin Mierla
* http://www.asipto.com/
More information about the sr-dev
mailing list