Project

General

Profile

Inc » History » Version 2

Per Amundsen, 05/02/2016 11:23 AM

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