[Kamailio-Users] Is it possible to break a "if" stament?
ingdavidcespedes at cable.net.co
ingdavidcespedes at cable.net.co
Thu Nov 6 01:22:38 CET 2008
----- Mensaje original -----
De: Iñaki Baz Castillo <ibc at 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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list