# Worksheet - Compound Conditionals

**URL:** <https://forum.code.org/t/worksheet-compound-conditionals/16091>\
**Category:** Unit and Lesson Discussion\
**Tags:** csp-unit-5, csp-unit-5-lesson-9\
**Created:** [May 7, 2018, 2:21pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091 "2018-05-07T14:21:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aprieksat](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aprieksat](https://forum.code.org/u/aprieksat)\
**Post date:** [May 7, 2018, 2:21pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/1 "2018-05-07T14:21:43Z")

</div>

On the last page, my students and I are wondering if there is an error in the answer key. Number 4 we believe the answer should be true because it is an **or** statement and day does equal Monday. Number 5 we believe it should be false because we are reading it as age is not equal to 16 and day is not equal to Monday, See image of answer key:  
 ![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex016/uploads/codeorgforum/original/2X/a/a0882fb02cd81b2551283d4b8714b4d43b15fff0.JPG)

---

<div class="post-metadata">

**Author:** ![kaitie\_o\_bryan](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kaitie_o_bryan/32/2278_2.png) [@kaitie\_o\_bryan](https://forum.code.org/u/kaitie_o_bryan)\
**Post date:** [May 7, 2018, 9:33pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/2 "2018-05-07T21:33:38Z")

</div>

Hi @aprieksat,

Fantastic question! I have a secret love for problems like this - I always loved those puzzles in middle school/high school to figure out complicated pairings (usually it was something like students with different eye/hair color and favorite subjects and the clues would be “none of the students with brown hair like science” or “none of the students with green eyes also have black hair”)

Anyway, I think you are missing the “!” symbol which means “not”. I made a diagram here to help explain how I break it down. I am starting in the middle (or in the parentheses) and then evaluating outward. Does that help?

 ![](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/f/fc3ab91f5a62e3850b45f9cdcf658c0dc15f468e.PNG)

---

<div class="post-metadata">

**Author:** ![aprieksat](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aprieksat](https://forum.code.org/u/aprieksat)\
**Post date:** [May 8, 2018, 1:53pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/3 "2018-05-08T13:53:54Z")

</div>

Oh thank you!!! This diagram helped us so much! We really appreciate the time you took to explain it.

---

<div class="post-metadata">

**Author:** ![eleanor\_alexander-ob](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@eleanor\_alexander-ob](https://forum.code.org/u/eleanor_alexander-ob)\
**Post date:** [November 14, 2019, 1:30pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/4 "2019-11-14T13:30:14Z")

</div>

Kaitie,  
Can you show me the diagram? I’m a bit confused.

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [November 14, 2019, 2:57pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/5 "2019-11-14T14:57:29Z")

</div>

Hi Eleanor,

Do you see the example in this post - [Worksheet - Compound Conditionals](https://forum.code.org/t/worksheet-compound-conditionals/16091/2) ? That is the diagram that is being referred to. It is the statements numbered 4 and 5. The T and F under the expressions are what the expressions evaluate to. Let me know if you have more questions.

---

<div class="post-metadata">

**Author:** ![eleanor\_alexander-ob](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@eleanor\_alexander-ob](https://forum.code.org/u/eleanor_alexander-ob)\
**Post date:** [November 14, 2019, 3:47pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/6 "2019-11-14T15:47:48Z")

</div>

I see a screenshot of the answer key but nothing with T or F underneath.

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [November 14, 2019, 4:01pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/7 "2019-11-14T16:01:33Z")

</div>

I have screenshot the example and added red circles on the T and F. Do you see them now?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/2/2c1fff98e31c85a8f844206351bef617e7b5e22d.jpeg)

---

<div class="post-metadata">

**Author:** ![eleanor\_alexander-ob](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@eleanor\_alexander-ob](https://forum.code.org/u/eleanor_alexander-ob)\
**Post date:** [November 14, 2019, 4:16pm UTC](https://forum.code.org/t/worksheet-compound-conditionals/16091/8 "2019-11-14T16:16:12Z")

</div>

Yes! Thank you very much!
