I see what Erudo is talking about with the a while loop inside. Pulled the fruitloop from your example and the while loop example from the wiki !script {{
--&fruits(999)|Apple
--&fruits(999)|Orange
--&fruits(999)|Banana
--&fruits(999)|Pineapple
--&fruits(999)|Grape
--%fruitloop|foreach;fruits
--+StartLoop|[&fruitloop]
--=Iteration|0
--&MyString|[=1d10 - 1]
--%loop|while;[&MyString(length)] -lt 12
--=Iteration|[$Iteration] + 1
--+Iteration [$Iteration.Raw]|[&MyString]
--&MyString|[&MyString][=1d10 - 1]
--%|
--+Final [&fruitloop]|[&MyString], [&MyString(length)]
--%|
}} That generates the following: So I don't see the loop going, in fact the Final line isn't printed so it's like the inner loop closes the loop EDIT: So setting the #debug setting shows that the script does just terminate after the inner while loop. I snipped some of the inner looped output but you can see that it starts with the loop fruitloop and then just ends at the end of loop loop, the inner while loop. "Setting parameter debug to value 1 - 1" "Line Counter: 2, Tag:&fruits(999), Content:Apple" "Line Counter: 3, Tag:&fruits(999), Content:Orange" "Line Counter: 4, Tag:&fruits(999), Content:Banana" "Line Counter: 5, Tag:&fruits(999), Content:Pineapple" "Line Counter: 6, Tag:&fruits(999), Content:Grape" "Line Counter: 7, Tag:%fruitloop, Content:foreach;fruits" "ScriptCards: Info - Beginning of loop fruitloop" "ContentIn: [&fruitloop] Match: [&fruitloop], vName: fruitloop, replacement Apple" "Line Counter: 8, Tag:+StartLoop, Content:Apple" "Line Counter: 9, Tag:=Iteration, Content:0" "Line Counter: 10, Tag:&MyString, Content:9" "Line Counter: 11, Tag:%loop, Content:while;1 -lt 12" "ScriptCards: Info - Beginning of loop loop" "ContentIn: [$Iteration] + 1 Match: [$Iteration], vName: Iteration, vSuffix: Total, replacement 0" < SNIP > "Line Counter: 12, Tag:=Iteration, Content:9 + 1" "ContentIn: +Iteration [$Iteration.Raw] Match: [$Iteration.Raw], vName: Iteration, vSuffix: Raw, replacement 10" "ContentIn: [&MyString] Match: [&MyString], vName: MyString, replacement 9836476192" "Line Counter: 13, Tag:+Iteration 10, Content:9836476192" "ContentIn: [&MyString][=1d10 - 1] Match: [&MyString], vName: MyString, replacement 9836476192" "Line Counter: 14, Tag:&MyString, Content:98364761926" "Line Counter: 15, Tag:%, Content:" "ContentIn: [$Iteration] + 1 Match: [$Iteration], vName: Iteration, vSuffix: Total, replacement 10" "Line Counter: 12, Tag:=Iteration, Content:10 + 1" "ContentIn: +Iteration [$Iteration.Raw] Match: [$Iteration.Raw], vName: Iteration, vSuffix: Raw, replacement 11" "ContentIn: [&MyString] Match: [&MyString], vName: MyString, replacement 98364761926" "Line Counter: 13, Tag:+Iteration 11, Content:98364761926" "ContentIn: [&MyString][=1d10 - 1] Match: [&MyString], vName: MyString, replacement 98364761926" "Line Counter: 14, Tag:&MyString, Content:983647619262" "Line Counter: 15, Tag:%, Content:" "ScriptCards: Info - End of loop loop"