From WikiChip
Difference between revisions of "mirc/identifiers/$ifmatch"
(Created page with "{{mirc title|$ifmatch Identifier}}{{Deprecated feature|new={{mIRC|$v1}}}}'''$ifmatch''' return the first part of the last conditional statement made. == Synopsis == <pre>$ifm...") |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{mirc title|$ifmatch Identifier}}{{Deprecated feature|new={{mIRC|$v1}}}}'''$ifmatch''' return the first part of the last conditional statement made. | {{mirc title|$ifmatch Identifier}}{{Deprecated feature|new={{mIRC|$v1}}}}'''$ifmatch''' return the first part of the last conditional statement made. | ||
+ | |||
== Synopsis == | == Synopsis == | ||
Line 19: | Line 20: | ||
alis testing if (a != b) echo -a $test(1) $ifmatch | alis testing if (a != b) echo -a $test(1) $ifmatch | ||
</source> | </source> | ||
− | This will echo 1 | + | This will echo 1 for $ifmatch because $test is evaluated before $ifmatch, so the $iif is the last statement made when $ifmatch evaluates. |
== Example == | == Example == | ||
Line 33: | Line 34: | ||
{{mIRC|/if}} | {{mIRC|/if}} | ||
{{mIRC|/while}} | {{mIRC|/while}} | ||
− | [[Category: | + | [[Category:mIRC identifiers|ifmatch]] |
Latest revision as of 15:11, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
Note: This feature has essentially been replaced by $v1.$ifmatch return the first part of the last conditional statement made.
Synopsis[edit]
$ifmatch
Paramters[edit]
None
Properties[edit]
None
Notes[edit]
Just like $v1 $v2 and $ifmatch2, this identifier return the value from the very last statement made:
alias test return $iif($1 == 1,1,2) alis testing if (a != b) echo -a $test(1) $ifmatch
This will echo 1 for $ifmatch because $test is evaluated before $ifmatch, so the $iif is the last statement made when $ifmatch evaluates.
Example[edit]
//if (a != b) echo -a $ifmatch
Compatibility[edit]
Added: mIRC v5.4
Added on: 23 Jun 1998
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.