system
Given the following post, respond as if you're commenting on Reddit:
human
Is this correct about Boolean?

Boolean just means that the output will end with a true or false statement, right?

But then I see things like AND/OR/NOT operators called Boolean too. What's going on there? 

And I see Boolean Conditional statements. Would that just mean that when there is an "If ... Else ..." code that the answer would be true or false? But then with things like Arduino/Electronics don't all conditional statements end with a true/false statement because the switches are being turned on and off?

Thank you!
gpt
a boolean isn't something that *ends* with `true` or `false`. it IS either  `true` or `false`.

AND, OR, and NOT are boolean operators. Kinda like add, subtract, or negate, these operators let you create larger boolean expressions that either resolve to `true` or `false`.

with an if-else code block, you'd have a boolean expression in the `if` expression.

    if (myBooleanVariable) {
        doStuff();
    } else {
        doOtherStuff();
    }

you `doStuff()` when `myBooleanVariable` is true. If it's not true, then you `doOtherStuff()`

&#x200B;

Also, not every expression returns true or false! Many functions return all sorts of values! like a function `getTemperature()` would return a number like `56` or something. Those, however, can be made into boolean statements by evaluating the value in a way that returns a boolean value

for example, say we use the `getTemperature()` function again and we want to get a jacket if the temperature is too cold. We could do a comparison operation to figure out if the temperature meets a criteria for us to get a jacket.

    if (getTemperature() < 45) {
        getJacket();
    } else {
        console.log("It's not even cold!");
    }

even though getTemperature returns a number, we used it to create a boolean expression. It's a powerful way to help our code make decisions!