My code is something like this:

`expressions_1expressions_2expressions_3`

I need a for cycle, but the start of the cycle depends on a parameter. So I would like that my code behave like this in case of param = 1:

`for i=1:N expressions_1 expressions_2 expressions_3end`

but for param = 2 it should be:

`expressions_1for i=1:N expressions_2 expressions_3end`

How to do this in general?

## Best Answer