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