Hi there,
I was trying to return the word that actually matched the IF statement, but wasn't able to

I tried a few $identifers, such as $ifmatch, $v1 and $v2, but nothing. I've also tried $matchkey, although I couldn't reproduce it's funcion nor understand it, based on the help file.
Eg:
alias test {
if (*test* iswm $$1-) { echo -ag * Yes: [color:red]<matched word> }
else { echo -ag * No }
}[/color]
If $$1- is 'This is me testing' then
<matched word> should be 'testing'
Thanks,
Zyzzyx
Edit: thanks milosh - typo