From WikiChip
Editing mirc/commands/hdec
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | The '''/hdec command''' decreases the value of a key by [num]. If the value is not specified, the default value is 1.0. | |
− | The '''/hdec''' | + | |
== Synopsis == | == Synopsis == | ||
− | /hdec [- | + | /hdec [-mszu#] <table> <key> [num] |
− | /hdec -b[ | + | /hdec -b[cmszu#] <table> <key> <&bvar> |
+ | |||
== Switches == | == Switches == | ||
− | * '''-m | + | * '''-m''' - Creates the hash table if it does not exist |
* '''-s''' - Displays the assignment information | * '''-s''' - Displays the assignment information | ||
− | * '''-b''' - | + | * '''-b''' - Treats the value as a binary variable |
− | * '''-z''' - | + | * '''-c''' - Truncates the &bvar at the first null value |
− | * '''- | + | * '''-z''' - Decreases the value by 1.0 every second; stops at zero |
− | + | * '''-u#''' - Removes the key/value after # seconds | |
+ | |||
== Parameters == | == Parameters == | ||
− | * ''' | + | * '''<table>''' - The handle name of the table to operate on |
− | * '''< | + | * '''<key>''' - The key associated with the value |
− | * '''[num]''' - The | + | * '''[num]''' - The value to decrease the value by |
− | * '''<&bvar>''' - The binary variable | + | * '''<&bvar>''' - The binary variable value to decrease the value by |
+ | |||
== Example == | == Example == | ||
− | |||
− | |||
<syntaxhighlight lang="mIRC">alias countdown { | <syntaxhighlight lang="mIRC">alias countdown { | ||
;adds the item down with a value of 10 to the table count | ;adds the item down with a value of 10 to the table count | ||
Line 39: | Line 40: | ||
== Compatibility == | == Compatibility == | ||
− | + | Added: mIRC v6.0 | |
+ | |||
+ | Added On: 03/02/2002 | ||
+ | |||
+ | |||
+ | <small>Note: Individual switches were not taken into consideration.</small> | ||
+ | |||
== See also == | == See also == | ||
− | * | + | * [[List of commands - mIRC|List of commands]] |
− | * | + | * [[List of identifiers - mIRC|List of identifiers]] |
− | * | + | * [[$hget identifier - mIRC|$hget]] |
− | * | + | * [[$hfind identifier - mIRC|$hfind]] |
− | * | + | * [[/hadd command - mIRC|/hadd]] |
− | * | + | * [[/hdel command - mIRC|/hdel]] |
− | * | + | * [[/hfree command - mIRC|/hfree]] |
− | * | + | * [[/hinc command - mIRC|/hinc]] |
− | * | + | * [[/hload command - mIRC|/hload]] |
− | * | + | * [[/hmake command - mIRC|/hmake]] |
+ | * [[/hsave command - mIRC|/hsave]] | ||
+ | |||
+ | [[Category:mIRC commands]] |