From dbcc7e97858c335f1b01536ab48f5baeeba11abd Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 3 Sep 2024 11:21:41 -0400 Subject: [PATCH] tweak docs to more clearly describe what's happening --- doc/antora/modules/reference/pages/unlang/foreach.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/antora/modules/reference/pages/unlang/foreach.adoc b/doc/antora/modules/reference/pages/unlang/foreach.adoc index bbb9ea1b53..47181a7fff 100644 --- a/doc/antora/modules/reference/pages/unlang/foreach.adoc +++ b/doc/antora/modules/reference/pages/unlang/foreach.adoc @@ -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] ---- -- 2.47.2