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: | ||
− | {{mirc title|/hdec Command}} | + | {{mirc title|/hdec Command}}{{mIRC menu}} |
− | The '''/hdec''' | + | The '''/hdec command''' decreases the value of a key by [num]. If the value is not specified, the default value is 1.0. |
+ | |||
== Synopsis == | == Synopsis == | ||
− | + | /hdec [-mszu#] <table> <key> [num] | |
− | + | ||
+ | /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 40: | Line 43: | ||
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|6.0}} | {{mIRC compatibility|6.0}} | ||
+ | |||
== See also == | == See also == | ||
− | * {{mIRC|/ | + | * [[List of commands - mIRC|List of commands]] |
+ | * [[List of identifiers - mIRC|List of identifiers]] | ||
+ | * {{mIRC|$hget}} | ||
+ | * {{mIRC|$hfind}} | ||
+ | * {{mIRC|/hadd}} | ||
+ | * {{mIRC|/hdel}} | ||
* {{mIRC|/hfree}} | * {{mIRC|/hfree}} | ||
+ | * {{mIRC|/hinc}} | ||
* {{mIRC|/hload}} | * {{mIRC|/hload}} | ||
+ | * {{mIRC|/hmake}} | ||
* {{mIRC|/hsave}} | * {{mIRC|/hsave}} | ||
− | + | {{mIRC command list}} | |
− | + | ||
− | + | [[Category:mIRC commands|hdec command - mIRC]] | |
− | |||
− | |||
− |