Consider the following script:

on ^*:HOTLINK:*:*:{
return
}

on *:HOTLINK:*:*:{
if (*a* iswm $1) {
echo a is in it
} else {
echo a is not in it
}
}

Whenever you double-click on a word, this should now display "a is in it" or "a is not in it", depending on whether the word contains an a.

However, if it does contain an a, both messages are printed.

In order words, the "else" branch is processed even if the condition was true. This seems to be true of any if-else statement I try.

Thanks