Improve if and logic slides.