Re: Question about unlang functionality



Does this mean it is treated differently in an if condition where I don't need the quotes ? Couldn't the switch statement treat the word the same way as the if statement treats the left hand side word and the case word like the right hand side of an if statement ?

Thank you
Markus

"Alan DeKok" <aland@deployingradius.com> wrote in message 479C2E97.7020207@deployingradius.com">news:479C2E97.7020207@deployingradius.com...
Markus Moeller wrote:
I have a internal check Attribute My-Test defined as string. I have the
following in authorize
..
       switch control:My-Test {

 The switch statement should use double quotes: "%{control:My-Test}"

               case {
...

 Which will always be taken, because the string above wasn't expanded

                      update reply {
                               Reply-Message = " Accepted "

 Which will not over-write the previous Reply-Message, because you used
"=", and not ":=".

 Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html







This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.