Nested if condition

so please take a look at this article on Complex condition linking, thanks!