Debian Codegraph @

doc/antora/modules/unlang/pages/break.adoc

raw
1 = The break statement
2
3 .Syntax
4 [source,unlang]
5 ----
6 break
7 ----
8
9 The `break` statement is used to exit an enclosing
10 xref:foreach.adoc[foreach] loop. The `break` statement only be used
11 inside of a xref:foreach.adoc[foreach] loop.
12
13 .Example
14 [source,unlang]
15 ----
16 foreach &Class {
17 if (&Foreach-Variable-0 == 0xabcdef) {
18 break
19 }
20
21 update reply {
22 Reply-Message += "Contains %{Foreach-Variable-0}"
23 }
24 }
25 ----
26
27 // Copyright (C) 2020 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
28 // Development of this documentation was sponsored by Network RADIUS SAS.