Combining a variable with a counter?



Hi,
in my script, I got many similar variables
task1 task2 task3 task4 ....

I'd like to address them in a loop with something like

$task$i

for $i being a counter that is increased each time.

Do you have an idea how to solve this. My efforts weren't very
successful.

Thanks,
Christoph Hörterer

.