]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
document updated behavior of break
authorAlan T. DeKok <aland@freeradius.org>
Thu, 1 Aug 2019 11:41:29 +0000 (07:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 1 Aug 2019 11:45:38 +0000 (07:45 -0400)
man/man5/unlang.5

index a1755563c6eaea97738397474e11f42efeb58628..a3cfb2fd5bcba36fd20c4a2b9b67484ba18b5629 100644 (file)
@@ -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