Hello I have the following for loop within html. I want to know how to output value i - 1. With the code below the output of the value ends up being:
0-1
1-1
2-1
3-1
4-1
@for(int i = 0; i < 5; i++){
<input type="text" name="name_@i-1" value="@i-1">
}
The correct value of inputs should be the following:
-1
0
1
2
3
Any help is much appreciated!