Friday 21 April 2017

JScript - Int Increment block at 1

On a code, I did that to every command written, I make one posQueue++; only, the int does not want to increase and gives me "0 1 1" instead of "0 1 2"!

if (connection.playing) {
  posQueue++;
  console.log(posQueue);
}

Console logs:

1
1

And not

1
2

Would there be a solution it?

Thank you in advance to those who answer!



via Adel Mrl

No comments:

Post a Comment