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