21 Jun
2011
21 Jun
'11
5:53 a.m.
Stefan Winter wrote:
a similar issue with the config parser here...
The following worked nicely in 2.1.10, but barks with "Unexpected text else" (and with the obvious change to elsif, "Unexpected text elsif").
if ( "%{NAS-Identifier}" == "ejabberd" ) { update request { RESTENA-Service-Type = "Staff-Jabber" } } else
Except that's wrong... it doesn't do what you want! The "else" is ignored.
But... what's wrong with that? How would I have to fix the syntax to be acceptable?
$ man unlang :) Everything needs to go on its own line: if (...) { ... } elsif (...) { ... } Using "} elseif" won't work. The "elsif" will *always* be ignored. Alan DeKok.