The parameter in timer should be a single line, if not then preferable is to specify an alias name, and script an alias that does the multiple commands that you want to perform.
.timer 2 10 myalias
alias myalias {
; commands
}
Btw since %net can never be two different strings at the same time, it is preferable to use elseif.
if (condition) {
}
elseif (condition) {
}
else {
}