Inc » History » Version 1
Per Amundsen, 02/12/2014 08:15 PM
| 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 | |||
| 15 | *Parameters* |
||
| 16 | |||
| 17 | <%var> - The variable to increase. |
||
| 18 | [value] - The value to increase by, default is 1. |
||
| 19 | |||
| 20 | *Example* |
||
| 21 | |||
| 22 | <pre> |
||
| 23 | alias example { |
||
| 24 | ;Create a local variable and set it to 5. |
||
| 25 | /var %x 5 |
||
| 26 | |||
| 27 | ;Increase %x by 5. |
||
| 28 | /inc %x 5 |
||
| 29 | |||
| 30 | ;Print out %x's content. |
||
| 31 | /echo -a %x |
||
| 32 | } |
||
| 33 | </pre> |