Project

General

Profile

Actions

Inc » History » Revision 7

« Previous | Revision 7/9 (diff) | Next »
Per Amundsen, 12/14/2019 10:06 AM


Added in 1.9.0

/inc [-cesuNzB] <%var> [value]

Increase the value of %var by value.

See also /dec, /set, /var.

Switches

-c = increase %var by value every second.
-e = Unset the variable when AdiIRC exits.
-s = Prints out the value of the variable.
-uN = Increase %var by value then unset the variable after N seconds.
-z = Decrease %var by value every second until zero and then unset the variable.
-k = TODO

Parameters

<%var> - The variable to increase.
[value] - The value to increase by, default is 1.

Example

alias example {
  ;Create a local variable and set it to 5.
  /var %x 5

  ;Increase %x by 5.
  /inc %x 5

  ;Print out %x's content.
  /echo -a %x
}

Updated by Per Amundsen about 5 years ago · 7 revisions

Also available in: PDF HTML TXT