> 
> I have need to add the values calculated inside of a for-each loop.
> Has anyone ever had to do that?
> 
> Example of what I want
> for-each ( $result ) {
>      $a = . + 1;
>      $b = $b + a;
> }
> 

You'll need to split this into multiple steps:

var $values := {
    for-each( $result ) {
        <value> . + 1;
    }
}

var $b = sum( $values/value );

_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to