User talk:Motdwin: Difference between revisions

no edit summary
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>&#123;&#123;#vardefine: i2 | 0 &#125;&#125;</b> and then inside the loop you can just use <b>&#123;&#123;#vardefine: i2 | &#123;&#123;#expr: &#123;&#123;#var: i2 &#125;&#125; + 1 &#125;&#125; &#125;&#125;</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>&#123;&#123;#expr: &#123;&#123;#var:i&#125;&#125; * &#123;&#123;#var:something&#125;&#125; + 15 &#125;&#125;</b>. If you want to display the value, you can use <b>&#123;&#123;#var:something&#125;&#125;</b> --[[User:Motdwin|Motdwin]] ([[User talk:Motdwin|talk]]) 15:26, 8 August 2021 (UTC)
2,079

edits