You don't need to bracket equations in AppGameKit basic:
while temp <> CurrentLevel * 1000
// etc
endwhile
...will get the same results as:
while (temp <> CurrentLevel * 1000)
// etc
endwhile
...and:
while temp <> (CurrentLevel * 1000)
// etc
endwhile
You can also add boolean operations in:
while temp <> CurrentLevel * 1000 and temp <> CurrentLevel * 2000
// etc
endwhile
...but I prefer to bracket around parts of boolean operations to make them easier to distinguish:
while (temp <> CurrentLevel * 1000) and (temp <> CurrentLevel * 2000)
// etc
endwhile