Inc » History » Revision 6
Revision 5 (Per Amundsen, 11/05/2019 05:59 AM) → Revision 6/9 (Per Amundsen, 11/05/2019 06:56 AM)
_Added in 1.9.0_
*/inc [-cesuNzB] <%var> [value]*
Increase the value of %var by value.
_See also [[/dec]], [[/set]], [[/var]]._
*Switches*
-c = increase %var by value every second.
-e = Unset the variable when AdiIRC exits.
-s = Prints out the value of the variable.
-uN = Increase %var by value then unset the variable after N seconds.
-z = Decrease %var by value every second until zero and then unset the variable.
-k = TODO
-B - Performs a $calcint calculation instead of regular $calc when arithmetic operators are used. (AdiIRC only)
*Parameters*
<%var> - The variable to increase.
[value] - The value to increase by, default is 1.
*Example*
<pre>
alias example {
;Create a local variable and set it to 5.
/var %x 5
;Increase %x by 5.
/inc %x 5
;Print out %x's content.
/echo -a %x
}
</pre>