From: Alan T. DeKok Date: Thu, 1 Aug 2019 11:41:29 +0000 (-0400) Subject: document updated behavior of break X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fb9ae4b31dcec9ca6bb45768401bae8ef419822;p=thirdparty%2Ffreeradius-server.git document updated behavior of break --- diff --git a/man/man5/unlang.5 b/man/man5/unlang.5 index a1755563c6e..a3cfb2fd5bc 100644 --- a/man/man5/unlang.5 +++ b/man/man5/unlang.5 @@ -104,11 +104,7 @@ their meanings. Loops over values of an attribute, running the block for each value. The return value of the block is the return value of the last statement executed. The loop can be exited early by using the "break" -keyword. Unlike other languages, "break" here means "exit the loop at -the next iteration", not "exit the loop now". The result is that any -statements after the "break" keyword will still be executed. We -recommend using "break" only when it is the last statement in a -"foreach" block. +keyword. No statements may appear after a "break". Inside of the "foreach" block, the attribute which is being looped over can be referenced as "Foreach-Variable-#". Where "#" is the