----- Mensaje original ----- De: Iñaki Baz Castillo ibc@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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
El Jueves, 6 de Noviembre de 2008, ingdavidcespedes@cable.net.co escribió:
Why don't you do if $fU == "alice" { xlog "hello"; } else{ xlog "bye"; } xlog "this is after the 'if'"
Well, it was just a simple example. The real "if" is more complex ;)
Thanks.