Name

incr

incr varName [increment]

Increment the variable varName. The optional increment specifies the value to be added to the variable; it defaults to 1. The new value is returned.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.