From WikiChip
$ifmatch Identifier - mIRC
< mirc‎ | identifiers
Revision as of 17:30, 6 September 2015 by 83.204.154.100 (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: This feature has essentially been replaced by $v1.$ifmatch return the first part of the last conditional statement made.

Synopsis

$ifmatch

Paramters

None

Properties

None

Notes

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 as $ifmatch2 because $test is evaluated after the if statement, so the $iif is the last statement made when $ifmatch evaluates.

Example

//if (a != b) echo -a $ifmatch

Compatibility

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.


See Also

$ifmatch2 $v1 $v2 /if /while