{"id":6054,"date":"2022-12-20T18:57:53","date_gmt":"2022-12-20T21:57:53","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/incr-mann\/"},"modified":"2022-12-20T18:57:53","modified_gmt":"2022-12-20T21:57:53","slug":"incr-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/incr-mann\/","title":{"rendered":"incr (mann)"},"content":{"rendered":"<h1 align=\"center\">incr<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">incr \u2212 Increment the value of a variable<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>incr<\/b> <i>varName<\/i> ?<i>increment<\/i>? ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Starting with the Tcl 8.5 release, the variable <i>varName<\/i> passed to <b>incr<\/b> may be unset, and in that case, it will be set to the value <i>increment<\/i> or to the default increment value of <b>1<\/b>.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Add one to the contents of the variable <i>x<\/i>:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>incr<\/b> x<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Add 42 to the contents of the variable <i>x<\/i>:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>incr<\/b> x 42<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Add the contents of the variable <i>y<\/i> to the contents of the variable <i>x<\/i>:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>incr<\/b> x $y<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Add nothing at all to the variable <i>x<\/i> (often useful for checking whether an argument to a procedure is actually integral and generating an error if it is not):<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>incr<\/b> x 0<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">expr(n), set(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">add, increment, variable, value<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  incr \u2212 Increment the value of a variable <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3783,1],"tags":[2726,2635],"class_list":["post-6054","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-incr","tag-mann"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6054"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6054\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}