Set local variable task = to list index