Hi Daniel,

can you help on this ?

Thank you

From: sr-dev [sr-dev-bounces@lists.sip-router.org] on behalf of Luis Azedo [luis@2600hz.com]
Sent: Wednesday, December 31, 2014 4:19 AM
To: sr-dev@lists.sip-router.org
Subject: [sr-dev] need help understanding $null

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