Hello,
avp_*() functions do not take the first parameter as avp with index. By
default, the check functions goes over all values of first parameter.
You can do in 1.2.0 via:
if($avp(i:1[1]) == 5)
{
}
Cheers,
Daniel
On 03/04/07 18:11, Brandon Armstead wrote:
Hello,
Can I simply do something like so? if(avp_check("$avp(i:1[1])",
"eq/s:5/g")) { # true } else { # false } ?? I seem to get an error
when I try to check the value against an AVP with index's, is there an
easier way then copying the index's value into a full AVP, can't I
just use the index's like normal AVP's?
Thanks, all help is appreciated!
--
Brandon Armstead
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users