I do the calculation of 32 * A_Index, however I want the initial value to begin at 0.
To achieve this, I'm subtracting 32 each time.
Is there a better way to do this, instead of having to always subtract 32?
Below is an example loop code, and the expected results.
Code: Select all
Loop 20 {
MsgBox (32 * A_Index) - 32
}
Code: Select all
1/20 = 0
2/20 = 32
3/20 = 64
4/20 = 96
5/20 = 128
6/20 = 160
7/20 = 192
8/20 = 224
9/20 = 256
10/20 = 288
11/20 = 320
12/20 = 352
13/20 = 384
14/20 = 416
15/20 = 448
16/20 = 480
17/20 = 512
18/20 = 544
19/20 = 576
20/20 = 608