----- Mensaje original -----
De: Iñaki Baz Castillo <ibc(a)aliax.net>
Fecha: Miércoles, Noviembre 5, 2008 6:50 pm
Asunto: [Kamailio-Users] Is it possible to break a "if" stament?
Hi, is it possible to break the body of an
"if"? something like:
--------------
if $fU == "alice" {
xlog "hello";
break;
xlog "bye";
}
xlog "this is after the 'if'"
--------------
So the result would be:
-------
hello
this is after the 'if'
-------
Is it possible?
Not, you can't do brake inside an If, only for Switch.
Why don't you do
if $fU == "alice" {
xlog "hello";
} else{
xlog "bye";
}
xlog "this is after the 'if'"
--
Iñaki Baz Castillo
_______________________________________________
Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users