Project

General

Profile

Actions

Dec » History » Revision 4

« Previous | Revision 4/7 (diff) | Next »
Per Amundsen, 11/05/2019 05:59 AM


Added in 1.9.0

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

This decreases the value of %var by value.

See also /inc, /set, /var.

Switches

-c - Decrease %var once per second.
-e - Unset the variable when AdiIRC exists.
-s - Echo the new value to current window.
-uN - Decrease %var once and unset the variable after N seconds.
-z - Decreases %var until it reaches zero and then unset it.
-B - Performs a $calcint calculation instead of regular $calc when arithmetic operators are used. (AdiIRC only)

Parameters

<%var> - The variable to decrease, either global or local.
[value] - Value to decrease by, if no value is defined, value is 1.

Example

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

  ;Decrease %x by 5.
  /dec %x 5

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

Updated by Per Amundsen about 5 years ago · 4 revisions

Also available in: PDF HTML TXT