24 lines
1.2 KiB
HTML
24 lines
1.2 KiB
HTML
<HTML><HEAD><TITLE>Built-In Commands - incr manual page</TITLE></HEAD><BODY>
|
|
<H3><A NAME="M2">NAME</A></H3>
|
|
incr - Increment the value of a variable
|
|
<H3><A NAME="M3">SYNOPSIS</A></H3>
|
|
<B>incr </B><I>varName </I>?<I>increment</I>?<BR>
|
|
<H3><A NAME="M4">DESCRIPTION</A></H3>
|
|
Increments the value stored in the variable whose name is <I>varName</I>.
|
|
The value of the variable must be an integer.
|
|
If <I>increment</I> is supplied then its value (which must be an
|
|
integer) is added to the value of variable <I>varName</I>; otherwise
|
|
1 is added to <I>varName</I>.
|
|
The new value is stored as a decimal string in variable <I>varName</I>
|
|
and also returned as result.
|
|
|
|
<H3><A NAME="M5">SEE ALSO</A></H3>
|
|
<B><A HREF="../TkCmd/expr.htm">expr</A></B>
|
|
<H3><A NAME="M6">KEYWORDS</A></H3>
|
|
<A href="../Keywords/A.htm#add">add</A>, <A href="../Keywords/I.htm#increment">increment</A>, <A href="../Keywords/V.htm#variable">variable</A>, <A href="../Keywords/V.htm#value">value</A>
|
|
<HR><PRE>
|
|
<A HREF="../copyright.htm">Copyright</A> © 1993 The Regents of the University of California.
|
|
<A HREF="../copyright.htm">Copyright</A> © 1994-1996 Sun Microsystems, Inc.
|
|
<A HREF="../copyright.htm">Copyright</A> © 1995-1997 Roger E. Critchlow Jr.</PRE>
|
|
</BODY></HTML>
|