User talk:Motdwin: Difference between revisions
no edit summary
Shironsaki (talk | contribs) |
No edit summary |
||
Line 7: | Line 7: | ||
**The thing is if you define the i as 1 value, how do you add another i value. | **The thing is if you define the i as 1 value, how do you add another i value. | ||
***<b>i</b> basically means the iterator position. What are you trying to do with another <b>i</b> value? But to answer the question you can just use <b>{{#vardefine: i2 | 0 }}</b> and then inside the loop you can just use <b>{{#vardefine: i2 | {{#expr: {{#var: i2 }} + 1 }} }}</b> to make it automatically increment at the end or the start of the loop. If your goal is to do a mathematical expression with the <b>i</b> value you can just use something like <b>{{#expr: {{#var:i}} * {{#var:something}} + 15 }}</b>. If you want to display the value, you can use <b>{{#var:something}}</b> --[[User:Motdwin|Motdwin]] ([[User talk:Motdwin|talk]]) 15:26, 8 August 2021 (UTC) |