$ifmatch

From Scriptwiki
Jump to: navigation, search

Returns the first parameter of an if-then-else comparison.

$ifmatch

Note: $ifmatch is deprecated and has been replaced by $v1 and $v2. You should switch to using $v1 and $v2 in case $ifmatch is no longer supported in future versions.

$v1 & $v2

These return the first and second parameters of an if-then-else comparison.

$v1
$v2

Example

if ($banmask iswm $ial($me)) { echo -ag The ban mask $v1 matches my mask of $v2 }

The above example is a snippet that could be used inside an On ban event, which will check to see if the ban mask set matches your host mask. If the comparison is successful $v2 is set to your IAL's host mask.