Help needed with Logical Order in if else statement

How did you get i have the same problem as you and cant seem to get it

Challenge URL:

I created a new topic so you can post your code for us to review.

To post a block of code into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


In this the question is “order of logic in the function so that it will return the correct statements” it wants you to change the code and you have no limits, when the code runs first part of the code is true so the code stops, try to switch the code