using control structures on the right side of an assignment