# FAQ: If Statements - Logical

This community-built FAQ covers the “Logical” exercise from the lesson “If Statements”.

Paths and Courses
This exercise can be found in the following Codecademy content:

## FAQs on the exercise Logical

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

## Join the Discussion. Help a fellow learner on their journey.

You can also find further discussion and get answers to your questions over in Language Help.

Agree with a comment or answer? Like () to up-vote the contribution!

Need broader help or resources? Head to Language Help and Tips and Resources. If you are wanting feedback or inspiration for a project, check out Projects.

Looking for motivation to keep learning? Join our wider discussions in Community

Found a bug? Report it online, or post in Bug Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Can someone help me with this, i know the concept of it but how do i put the answer with the available blocks? How do i add in “or” ?

You can always show us what you’ve known so far to better assist us in helping you, otherwise it will become spoon-feeding. Also, a simple Google search like `conditional statements in "Your chosen PROGAMMING LANGUAGE"` should probably return more results than you can get here !

1 Like
• Drag the `if-else` block and embed it within the `While program is running` block.

• Then, drag the `or` block and slot it into the `if` condition. In the two slots of the `or`, you can place the `Space ___ is ___` blocks.

• And so on.

Have a look at the screenshot. Once you understand the general process, you should be able to complete the later exercises yourself. If you are still unsure about some aspect, share your thoughts on what you find confusing.

Screenshot:

1 Like

Okay, your are right, I knew my answer in my head but to put the blocks in an order where it would work out was my problem. Also, thank you for the advice :). I did google search it but the way i phrased it didn’t give me much answers, i will try your way next time.

2 Likes

Thank you! I didn’t know that you can place them like “If or” like that. I thought you have to say one, like- If Space left is hedge then add the ‘or’ block but there isn’t a way to connect it, that’s what confused me. Thank you for showing me how to place them so they can work correctly.

1 Like