Project

General

Profile

Inc » History » Version 4

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