Revert "Get rid of "if" in examples."

This reverts commit 5aabe24f05e45ac006550f0bfc6fa8c31c1541cc.
backup