# Iteration_number_variable as index-number?

#1

Hi,

I just tried to make a Constant Value variable with “set value” as

\${number_list2[\${iteration}]}

• iteration is a number-variable, but it does not really work. Is there a solution for this or is it just not possible?

Best regards

#2

`\${number_list2[iteration as Integer]}`

https://kb.workfusion.com/display/RPAe/Recorder+Variables#RecorderVariables-UsingIndexeswithLists

#3

Thanks! So “iteration as Integer” can not be a number-variable?

#4

`iteration` is a Number variable

`as Integer` is a construction that removes decimal part

#5

Sorry - did not understand that part. Thanks!