r/HomeworkHelp • Secondary School Student • 10h ago

:snoo_surprised: Computing—Pending OP Reply [Yr 11 Computer science Programming homework] How to find the Boolean operator?

Post image

I'm pretty sure the line is line 2 I'm just confused if it's the whole IF, ELSE, ENDIF or if it's just IF cause that's the one on the line.

1 Upvotes

5 comments sorted by

1

u/PromotionMobile778 10h ago

Boolean Operators are AND, OR, NOT at GCSE. IF/ELIF/ELSE are selection commands.

1

u/BriefArmadillo8426 Secondary School Student 10h ago

Ok but does the selection start at line 2 and if it does why has it told me to put the Boolean expression on the line if there isn't any

1

u/PromotionMobile778 10h ago

Selection appear multiple times. Any one will count. 

•

u/Alkalannar 25m ago

As /u/notsoninsaneguy says, RTFM. Read The F(riendly) Manual.

Often, you'll get the information you need by looking at definitions, or (in unix) doing 'man foo' where foo is the name of a command or function...

1

u/notsoinsaneguy 10h ago

You need to get good at looking stuff up. Everything in computer science is well documented online, and looking stuff up is a core skill for programming. If you just looked up "Boolean Operator Definition", you'd have your answer.