The aim has been to select the elements of a vector sequentially, perform operations with the selected element and step to the next element until the end of the given index vector. The following primitive schematic illustrates the scenario

The following message was dlivered:
Error in ‘SW1’: Parameter value is not a single number. ([2,4])
Is it not possible to select a multi-element subset of a given vector?