Re: Question about unlang functionality

2008-01-27 Thread Alan DeKok
Markus Moeller wrote: > Does this mean it is treated differently in an if condition where I > don't need the quotes ? No. The "man" page makes this clear. As of 2.0.1, you don't need quotes in certain cases when doing conditional comparisons. The same "man" page also says that for "switch" st

Re: Question about unlang functionality

2008-01-27 Thread Markus Moeller
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 DeKo

Re: Question about unlang functionality

2008-01-26 Thread Alan DeKok
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 th

Question about unlang functionality

2008-01-26 Thread Markus Moeller
I have a internal check Attribute My-Test defined as string. I have the following in authorize update reply { Reply-Message = " Hi " } switch control:My-Test { case "500" { update control {