Replace value in the context of a loop #109
Unanswered
createchange
asked this question in
Q&A
Replies: 1 comment
-
You need to change |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am not understanding how I can update the value of a variable, when in a loop. I am using the img2img example as a reference file. I have a file named
nationality.txt
, which I am able to reference without issue. The file contains line delimited nationalities, wrapped in[choose][/choose]
tags.I have tried setting the
nationality
variable at multiple nested levels however, no matter what, it gets the same value for each iteration through the loop. See below for places I have tried setting and resetting the variable:Unfortunately, none of these work... I am kind of at a loss.
The first place I tried putting it just sets it once, which makes sense. It's outside of the loop.
The second place I tried putting it has the following outcome:
The third place I tried putting it shows the code as entering the After routine, but I always get the same value for nationality.
Beta Was this translation helpful? Give feedback.
All reactions