We'll use Boolean values to make decisions in our code. As you remember, Boolean values can only be true or false. And we'll use that to decide whether to run code or not, like we did with the loops, but this time we'll also use it to decide about which block of code to run will use three logical operators. The first two and n or are used to compare two or more conditions, and not the third one is used to toggle a value to its opposite. These are the symbols we'll type into robot see when we want to use these logical operators. The output of these logical operators are also Boolean values.
As you can see in this truth table, when we use and both conditions need to be true for the outcome to be true Or, on the other hand will only be false if both conditions are false. But it will be true if either or both the conditions are true. The NOT operator is an inverter, it will always change whatever you have to the opposite