Inc » History » Version 5
Per Amundsen, 11/05/2019 05:59 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 | 3 | Per Amundsen | -B - Performs a $calcint calculation instead of regular $calc when arithmetic operators are used. (AdiIRC only) |
18 | 1 | Per Amundsen | |
19 | *Parameters* |
||
20 | |||
21 | <%var> - The variable to increase. |
||
22 | [value] - The value to increase by, default is 1. |
||
23 | |||
24 | *Example* |
||
25 | |||
26 | <pre> |
||
27 | alias example { |
||
28 | ;Create a local variable and set it to 5. |
||
29 | /var %x 5 |
||
30 | |||
31 | ;Increase %x by 5. |
||
32 | /inc %x 5 |
||
33 | |||
34 | ;Print out %x's content. |
||
35 | /echo -a %x |
||
36 | } |
||
37 | </pre> |