How to reach the conditions of the result

Here is the structure I use for situations like this.