implement #1135 Split if statement