Re: [SR-Users] How to define variable as string explicitly

2013-06-12 Thread Alex Balashov
On 06/12/2013 09:53 AM, Alex Balashov wrote: Also, note that request routes are not functions per se, and do not have return values, or local variable scope, or other things that functions have. So, you can't do this: $var(matched_prefix) = route(INCOMING_AUTH); Well, allow me to correct

Re: [SR-Users] How to define variable as string explicitly

2013-06-12 Thread Alex Balashov
Hi Mino, There is no explicit transformation for forcing a value like this to string: $var(x) = "1234"; However, I have found this to work: $var(x) = "" + "1234"; Also, note that request routes are not functions per se, and do not have return values, or local variable scope, or other th

[SR-Users] How to define variable as string explicitly

2013-06-12 Thread Mino Haluz
Hi, I need to define variables as string explicitly. What I have in the code: in prefix_list is 123,456,789 $var(matched_prefix) = $(var(prefix_list){s.select,$var(i),,}); then in MAIN route: $var(matched_prefix) = route(INCOMING_AUTH); and this check if ($var(matched_prefix) != "nullprefix"