My point was not about using if statement ... I just used that, because It's a starting point for everyone.
Most of use learn through cycle and conditional and variables... and most of the time, we just follow the rules. That was the point, not encouraging to use poor design.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.