if (%var isupper) msg #chan first way
elseif (thisword isin %var) msg #chan second way
else msg #chan third way

Both else if and elseif work

More info /help if then else