Inc » History » Version 6
Per Amundsen, 11/05/2019 06:56 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | 4 | Per Amundsen | */inc [-cesuNzB] <%var> [value]* |
4 | 1 | Per Amundsen | |
5 | Increase the value of %var by value. |
||
6 | |||
7 | 5 | Per Amundsen | _See also [[/dec]], [[/set]], [[/var]]._ |
8 | |||
9 | 1 | Per Amundsen | *Switches* |
10 | |||
11 | -c = increase %var by value every second. |
||
12 | -e = Unset the variable when AdiIRC exits. |
||
13 | -s = Prints out the value of the variable. |
||
14 | -uN = Increase %var by value then unset the variable after N seconds. |
||
15 | -z = Decrease %var by value every second until zero and then unset the variable. |
||
16 | 2 | Per Amundsen | -k = TODO |
17 | 1 | Per Amundsen | |
18 | *Parameters* |
||
19 | |||
20 | <%var> - The variable to increase. |
||
21 | [value] - The value to increase by, default is 1. |
||
22 | |||
23 | *Example* |
||
24 | |||
25 | <pre> |
||
26 | alias example { |
||
27 | ;Create a local variable and set it to 5. |
||
28 | /var %x 5 |
||
29 | |||
30 | ;Increase %x by 5. |
||
31 | /inc %x 5 |
||
32 | |||
33 | ;Print out %x's content. |
||
34 | /echo -a %x |
||
35 | } |
||
36 | </pre> |