Dec » History » Version 1
Per Amundsen, 02/09/2014 04:36 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */dec [-cesuNz] <%var> [value]* |
||
4 | |||
5 | This decreases the value of %var by value. |
||
6 | |||
7 | *Switches* |
||
8 | |||
9 | -c - Decrease %var once per second. |
||
10 | -e - Unset the variable when AdiIRC exists. |
||
11 | -s - Echo the new value to current window. |
||
12 | -uN - Decrease %var once and unset the variable after N seconds. |
||
13 | -z - Decreases %var until it reaches zero and then unset it. |
||
14 | |||
15 | *Parameters* |
||
16 | |||
17 | <%var> - The variable to decrease, either global or local. |
||
18 | [value] - Value to decrease by, if no value is defined, value is 1. |
||
19 | |||
20 | *Example* |
||
21 | |||
22 | <pre> |
||
23 | alias example { |
||
24 | ;Create a local variable and set it to 10 |
||
25 | var %x 10 |
||
26 | |||
27 | ;Decrease %x by 5 |
||
28 | /dec %x 5 |
||
29 | |||
30 | ;Print out %x's content |
||
31 | echo -a %x |
||
32 | } |
||
33 | </pre> |