Just a question about the for loop

BLOCK:ConstantList
  value = ["one", "two", "three"]
  => VAR @list
ENDBLOCK

for (int i = 0; i < list.Count; i++)
{
  BLOCK:ToUppercase
    input = @list[i]
    => VAR @upper
  ENDBLOCK

}
LOG @upper "Capture"

i need to use this process but i have a problem
outside this bracket i need to use @upper
There are long operations that I do not want to be repeated in this for loop, after I write them all in the list, I must make corrections outside the parentheses, otherwise it will take unnecessary operations and unnecessary time.
but when i want to use it after parenthesis i get an error like @upper not found.
is there a way or do i have to do everything in this loop thanks

Next question if there is a way:

is there a way to get all BLOCK:HttpRequest operations executed inside the for loop with a single parse?
now normally it can only get the values ​​of the last BLOCK:HttpRequest executed.
I need to parse from all the BLOCK:HttpRequest operations that I see on the log page. It would be great if I could do it with a parse

My scenario is something like this @Ruri

BLOCK:ConstantList
  value = ["one", "two", "three"]
  => VAR @list
ENDBLOCK

for (int i = 0; i < list.Count; i++)
{
BLOCK:HttpRequest
  url = $"https:/example.com/"
  TYPE:STANDARD
  {"example:<list[i]>"}
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
  input = @data.SOURCE
  jToken = "data"
  RECURSIVE
  MODE:Json
  => VAR @result
ENDBLOCK

BLOCK:AddToList
  list = @result
ENDBLOCK
}
LOG @result "Capture"

Read all of these

The URL is the same in all of them, I gave it as an example. POST Content is changing, so the results are different.

BLOCK:HttpRequest
  url = "https://webscraper.io/test-sites/e-commerce/allinone"
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
  input = @data.SOURCE
  prefix = "https://webscraper.io/"
  cssSelector = ".thumbnail .caption h4 a"
  attributeName = "href"
  RECURSIVE
  MODE:CSS
  => VAR @urls
ENDBLOCK

BLOCK:ConstantList
  value = []
  => CAP @prices
ENDBLOCK

FOREACH url IN urls
// Query the single URL
BLOCK:HttpRequest
  url = @url
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
  input = @data.SOURCE
  cssSelector = ".price"
  attributeName = "innerText"
  MODE:CSS
  => VAR @price
ENDBLOCK

BLOCK:AddToList
  list = @prices
  item = @price
ENDBLOCK
END

i tried this

like this

for (int i = 0; i < list.Count; i++)
{
BLOCK:HttpRequest
  url = $"https:/example.com/"
 method = POST
  TYPE:STANDARD
  $"{\"example:<list[i]>\"}"
  "application/x-www-form-urlencoded"
ENDBLOCK
}