Curious Conditional Conundrum

why not use for loop, it is safer and more transparent as to intention of the code