.!command after an if or elseif on the same line doesnt do the default command, but sends to the server

Code:
alias test { if (a == a) { .!echo -a test } }


sends !echo -a test to the server