WLJS LogoWLJS Notebook

Increment

x++ increases the value of x by 1, returning the old value of x.

Examples

Post-increment:

x = 5;
x++
(* 5 *)
x
(* 6 *)

In a loop:

i = 0;
While[i++ < 3, Print[i]]

Please visit the official Wolfram Language Reference for more details.

On this page