Dec » History » Revision 6
Revision 5 (Per Amundsen, 11/05/2019 06:56 AM) → Revision 6/7 (Per Amundsen, 11/03/2020 06:18 AM)
_Added in 1.9.0_ */dec [-cesuNzB] <%var> [value]* This decreases the value of %var by value. _See also [[/var]], [[/inc]], [[/set]], [[/unset]], [[/inc]], [[$var]]._ [[/var]]._ *Switches* -c - Decrease %var once per second. -e - Unset the variable when AdiIRC exists. -s - Echo the new value to current window. -uN - Decrease %var once and unset the variable after N seconds. -z - Decreases %var until it reaches zero and then unset it. *Parameters* <%var> - The variable to decrease, either global or local. [value] - Value to decrease by, if no value is defined, value is 1. *Example* <pre> alias example { ;Create a local variable and set it to 10. var %x 10 ;Decrease %x by 5. /dec %x 5 ;Print out %x's content. echo -a %x } </pre>