I too am not sure why the first example from shahidali55 didn't work. Seems all the () are in place. Of the 2 from Henrick I think the second will be best.

Having said that, Even if it works, I am not sure you will save code space using it. It will take a lot of ASM to make that statement.

Another idea may be to go back to your original post and make the common lines a subroutine. this way the pause1000 will only be coded once and you won't have the complicated until expression.

Of course you will have to verify by looking at the compiled size.