Project

General

Profile

Inc » History » Version 9

Per Amundsen, 02/16/2023 12:49 PM

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 8 Per Amundsen
_See also [[/var]], [[/set]], [[/unset]], [[/dec]], [[$var]]._
8 5 Per Amundsen
9 1 Per Amundsen
*Switches*
10
11 9 Per Amundsen
table(ktable).
12
|*Switch*|*Description*|
13
| -c | increase %var by value every second. |
14
| -e | Unset the variable when AdiIRC exits. |
15
| -s | Prints out the value of the variable. |
16
| -uN | Increase %var by value then unset the variable after N seconds. |
17
| -z | Decrease %var by value every second until zero and then unset the variable. |
18
| -k | *TODO* |
19 1 Per Amundsen
20 7 Per Amundsen
*Parameters*
21 1 Per Amundsen
22 9 Per Amundsen
table(ktable).
23
|*Parameter*|*Description*|
24
| <%var> | The variable to increase. |
25
| [value] | The value to increase by, default is 1. |
26 1 Per Amundsen
27
*Example*
28
29
<pre>
30
alias example {
31
  ;Create a local variable and set it to 5.
32
  /var %x 5
33
34
  ;Increase %x by 5.
35
  /inc %x 5
36
37
  ;Print out %x's content.
38
  /echo -a %x
39
}
40
</pre>