# FAQ: Control Flow - Conditional

This community-built FAQ covers the “Conditional” exercise from the lesson “Control Flow”.

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

Learn How To Code

## FAQs on the exercise Conditional

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.

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

Found a bug? Report it!

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!

"In our social media example, all the instructions are shown in the diagram, but only some of them will be executed each time. Here they are in text form:

``````Check profile privacy
Hide the post
Show the post"
``````

Why they will be executed each time if in one time can be completed just one thing. Or “Hide the post” or “Show the post”?

this is just the first step, imaging you have a bunch of posts, you will need to check each post if its private or public:

``````for post in posts:
if post is private:
hide
else:
show the post
``````
2 Likes

hi po, i got stuck to this part, i already did the instructions in this short activity but i cant move on to next, … just need help here, thanks po in advance

3 Likes

what’s the control flow ? can we say ( control flow = is the account public or private )

“When is step 2 executed and when is 3 executed? The answer is: it depends. The control flow is 1-2 if the profile is private and 1-3 if the profile is public. The condition is the privacy setting on the profile.”

I am not sure what the numbers represent in the function. I suppose the 1 makes sense because it is the beginning of the control flow, but why is the first option 1-3 and the second option 1-2?

what do you been by whats the control flow of each?

@mtf
what those numbers mean[1-2 and 1-3]?

This FAQ is for a specific exercise, within the exercise explanation is a step description:

which is what the numbers are referring.

1 Like