incr

incr varName ?increment?

Adds increment (1 by default) to the integer in a variable, and gives the new value. It makes the variable with 0 first when it has no value.

Examples

A click on an example runs it in the shell of the page.

Errors

Facts