Introduction to Programming 3: Boolean’s, Logic, and Conditionals

|          AND           |
| A | B | Output |
| True | True | True |
| True | False | False |
| False | True | False |
| False | False | False |
| OR |
| A | B | Output |
| True | True | True |
| True | False | True |
| False | True | True |
| False | False | False |
| Not |
| A | Output |
| True | False |
| False | True |
if (<boolean expression>) {
<statements>
}
if (<boolean expression>) {
<statements when true>
} else {
<statements when false>
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store