There is an array variable that has values of Var[1] through Var[n]
I want to write something like the following:
Code: Select all
let>counter=1
while>counter<=n
if>%comparisonVariable%=Var[%counter%]
// Code if values are the same
else
// Code if values are different
endif
endwhile>
When I tried to implement this, it seemed like Var[%counter%] was being treated like a string.
Am I using incorrect syntax here?
I tried %Var[%counter%]% but that didn't work, and I also tried using complex expression syntax, but I couldn't get it to work.
I deleted my original code because I found a different solution to the issue I was trying to address, so the above code is just based on my memory. I would definitely like to understand the proper syntax for this for future projects, however.
Thanks in advance!