[sr-dev] need help understanding $null

Luis Azedo luis at 2600hz.com
Wed Dec 31 13:19:00 CET 2014


Hi,

if we return val.flags = PV_VAL_NULL, does the == $null comparison work ?

script example

my_function("some param","$var(result)");
if( $var(result) == $null {
  do something
}
in code => dst_pv->setf(msg, &dst_pv->pvp, (int)EQ_T, &dst_val);
 should the comparison work if we set dst_val.flags = PV_VAL_NULL ?


if( $(myPvar{my.mytransform,transformParameter}) == $null) {
  ....
}
should this work if the transform returns val.flags = PV_VAL_NULL ?


thank you





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20141231/83c60816/attachment.html>


More information about the sr-dev mailing list