Re: [SR-Users] Counting xavp stack

2014-11-10 Thread Alex Balashov
On 11/10/2014 04:27 AM, Daniel-Constantin Mierla wrote: On 08/11/14 02:53, Alex Balashov wrote: It would be great if there were some way to count the depth of a stack of XAVPs, e.g. $xavp(root=>num) = 1; $xavp(root[0]=>num) = 2; $xavp(root[0]=>num) = 3; ... $var(depth) = $(xavp(

Re: [SR-Users] Counting xavp stack

2014-11-10 Thread Daniel-Constantin Mierla
On 08/11/14 02:53, Alex Balashov wrote: > It would be great if there were some way to count the depth of a stack > of XAVPs, e.g. > > $xavp(root=>num) = 1; > $xavp(root[0]=>num) = 2; > $xavp(root[0]=>num) = 3; > ... > $var(depth) = $(xavp(root=>num){avp.count}); > > Right now, the only w

[SR-Users] Counting xavp stack

2014-11-07 Thread Alex Balashov
It would be great if there were some way to count the depth of a stack of XAVPs, e.g. $xavp(root=>num) = 1; $xavp(root[0]=>num) = 2; $xavp(root[0]=>num) = 3; ... $var(depth) = $(xavp(root=>num){avp.count}); Right now, the only way to do this that I know of is something like: $var(i