[bugfix] invalid if/else syntax