]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tweak docs to more clearly describe what's happening
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 15:21:41 +0000 (11:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Sep 2024 19:05:24 +0000 (15:05 -0400)
doc/antora/modules/reference/pages/unlang/foreach.adoc

index bbb9ea1b536a9268f6abbe96a55852ce7b4e6032..47181a7fffd9ef4bb714549a76493b190e5ba25a 100644 (file)
@@ -60,11 +60,12 @@ Once the loop has finished , the `&Tmp-Integer-0` attribute will have the follow
 .Pseudocode for variable modification
 ----
 loop over each i in attribute[0..n]
-     copy attribute[i] to the key variable
+    copy attribute[i] to the key variable, or cast the attribute to the destination type
 
-     run loop body
+    run loop body
 
-     copy the key variable back to attribute[i]
+    if data type of attribute matches the data type of the key
+        copy the key variable back to attribute[i]
 ----