aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/de
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-02-24 16:02:05 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-24 16:02:05 +0800
commitafc2eba9d73a43d2f3080cf12be4ffe977a79414 (patch)
tree7d07be9dd9150d1eaa08caddcf3e7f88acb5396a /doc/docs/de
parent0ccf4408271c8a0d147e3cf25689810862e8c1db (diff)
downloadyuescript-afc2eba9d73a43d2f3080cf12be4ffe977a79414.tar.gz
yuescript-afc2eba9d73a43d2f3080cf12be4ffe977a79414.tar.bz2
yuescript-afc2eba9d73a43d2f3080cf12be4ffe977a79414.zip
Updated docs. [skip CI]
Diffstat (limited to 'doc/docs/de')
-rw-r--r--doc/docs/de/doc/advanced/do.md44
-rw-r--r--doc/docs/de/doc/objects/with-statement.md4
2 files changed, 25 insertions, 23 deletions
diff --git a/doc/docs/de/doc/advanced/do.md b/doc/docs/de/doc/advanced/do.md
index c6c41cf..b0a442a 100644
--- a/doc/docs/de/doc/advanced/do.md
+++ b/doc/docs/de/doc/advanced/do.md
@@ -20,27 +20,7 @@ print var -- nil hier
20 20
21</YueDisplay> 21</YueDisplay>
22 22
23YueScripts **do** kann auch als Ausdruck verwendet werden. So kannst du mehrere Zeilen in einem Ausdruck kombinieren. Das Ergebnis des `do`-Ausdrucks ist die letzte Anweisung im Block. `do`-Ausdrücke unterstützen die Verwendung von `break`, um den Kontrollfluss zu unterbrechen und mehrere Rückgabewerte vorzeitig zurückzugeben. 23YueScripts **do** kann auch als Ausdruck verwendet werden. So kannst du mehrere Zeilen in einem Ausdruck kombinieren. Das Ergebnis des `do`-Ausdrucks ist die letzte Anweisung im Block.
24
25```yuescript
26status, value = do
27 n = 12
28 if n > 10
29 break "large", n
30 break "small", n
31```
32
33<YueDisplay>
34
35```yue
36status, value = do
37 n = 12
38 if n > 10
39 break "large", n
40 break "small", n
41```
42
43</YueDisplay>
44 24
45```yuescript 25```yuescript
46counter = do 26counter = do
@@ -87,3 +67,25 @@ tbl = {
87``` 67```
88 68
89</YueDisplay> 69</YueDisplay>
70
71`do`-Ausdrücke unterstützen die Verwendung von `break`, um den Kontrollfluss zu unterbrechen und mehrere Rückgabewerte vorzeitig zurückzugeben.
72
73```yuescript
74status, value = do
75 n = 12
76 if n > 10
77 break "large", n
78 break "small", n
79```
80
81<YueDisplay>
82
83```yue
84status, value = do
85 n = 12
86 if n > 10
87 break "large", n
88 break "small", n
89```
90
91</YueDisplay>
diff --git a/doc/docs/de/doc/objects/with-statement.md b/doc/docs/de/doc/objects/with-statement.md
index f299902..2eb6039 100644
--- a/doc/docs/de/doc/objects/with-statement.md
+++ b/doc/docs/de/doc/objects/with-statement.md
@@ -162,14 +162,14 @@ with tb
162 162
163```yuescript 163```yuescript
164with? obj 164with? obj
165 print obj.name 165 print .name
166``` 166```
167 167
168<YueDisplay> 168<YueDisplay>
169 169
170```yue 170```yue
171with? obj 171with? obj
172 print obj.name 172 print .name
173``` 173```
174 174
175</YueDisplay> 175</YueDisplay>