I understood just fine...

alias bugtest {
if (1 == 1) {
if (2 == 1) { ;echo -a one | ;echo -a two }
else { echo -a False }
}
}

As they explained, the pipe takes higher precedance than the semicolon. The semicolon is a SINGLE line comment, everything is ignored until the END of the line. Because the pipe has higher precedance, the first commented command ends at the pipe, however the comment has higher procedance than the }, therefor the second comments command ignores EVERYTHING until the end of the line, INCLUDING the }. As a result that second if statement is never closed, again as already explained.

The problem is not with mircs comment handling (it is right to include the brace in the ignored/commented text), the problem was with the way you wrote the code. (or more acurately, your method of commenting in that style of code layout)

If there is any issues here at all, then it is the inconsistancy between the parser and the bracket matching feature of the script editor. (again as already mentioned)

Last edited by Om3n; 22/12/06 12:20 PM.

"Allen is having a small problem and needs help adjusting his attitude" - Flutterby