On Dec 15, 2015, at 9:20 AM, Franks Andy (IT Technical Architecture Manager) <Andy.Franks@sath.nhs.uk> wrote:
Had an earlier attempt was to break it down, guess I might have come at it from the wrong angle, i.e. trying "%{xlat:%{control:Tmp-Integer-0}}". I imagined that piece to be expanded first into and integer, in the way bracketed things work inside -> out.
"%{Control:Tmp-Integer-0}" is fine, gives the correct number, no great surprise there.
I can't test "%{control:Tmp-String-3[%{control:Tmp-Integer-0}]}" as the server won't start up since it doesn't see control:Tmp-Integer-0 as an actual integer.
Yes. I did this: update request { Tmp-Integer-0 := 1 Tmp-String-0 += "a" Tmp-String-0 += "b" Tmp-String-0 += "c" } update reply { Filter-Id := "%{xlat:Tmp-String-0[%{Tmp-Integer-0}]}" } and it worked. The Filter-Id had 'b' as a value. Alan DeKok.