Splitted ifThenElse block and separate statement