From WikiChip
Difference between revisions of "mirc/commands/dec"
(Created page with "The '''/dec command''' decreases the value of a variable by a given value. If no value is specified, mIRC will decrease the variable by one. The /dec command works with both p...") |
m (Bot: Adding a template) |
||
Line 40: | Line 40: | ||
* [[/unset command - mIRC|/unset]] | * [[/unset command - mIRC|/unset]] | ||
* [[/var command - mIRC|/var]] | * [[/var command - mIRC|/var]] | ||
+ | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:MIRC commands]] |
Revision as of 21:29, 3 July 2014
The /dec command decreases the value of a variable by a given value. If no value is specified, mIRC will decrease the variable by one. The /dec command works with both positive and negative values alike.
Synopsis
/dec [-cszeuN] <%var> [value]
Switches
- -c - Decreases the variable once per second
- -s - Prints out the value of the variable
- -z - Decreases the variable every second until it reaches zero at which point the variable will get removed.
- -e - Unsets the variable when mIRC exits
- -uN - Decrease the variable once and unsets the variable after N seconds.
Parameters
- %var - The variable's name
- [value] - Optional numeric value to decrease the variable by
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 }
Compatibility
Added: mIRC v4.0
Added On: 20/03/1996
Note: Individual switches were not taken into consideration.
See also
mIRC commands list