Quote:
|
Originally Posted by PM
Quote:
|
Originally Posted by Sp4rt4n
im kinda a scripting noob, but i think i++ is the value of i plus 1...
|
i++ increments i by 1. The value of i++ itself is i though.
++i does the same, but its value is the incremented value.
|
Code:
//ex.
new i = 6
new j
j = i++ //i is 7, j is 6
j = i++ //i is 8, j is 7
j = ++i //i is 9, j is 9
j = ++i //i is 10, j is 10
__________________