Question about unlang functionality

Alan DeKok aland at deployingradius.com
Sun Jan 27 16:21:06 CET 2008


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" statements, the statement is
expanded if it is in double 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 ?

  Yes.

  As always, patches are welcome.

  Alan DeKok.



More information about the Freeradius-Users mailing list