Thanks for your bug report. This has been fixed for the next beta. However, the if/while parser is complicated due to the way the scripting language evolved which means that small changes can have subtle side-effects. This fix passes my 50+ test cases of complex/multi-level/convoluted if/while statements but will need further testing.