It would be nice to have an N parameter for $ifmatch/

For example, lets say I have:
if (text isin sometext) && (text2 !isin sometext) { do stuff }

$ifmatch(1) would return "text"
$ifmatch(2) would return "text2"
$ifmatch(0) would return the number of comparison matches, in this case 2 because we have () && ()